MaplePrimes Questions

Hello everybody.

I have a function:

f(x,y)=GAMMA(y, -ln(x))/GAMMA(y)

seq(sum(f(x, y), y = 0 .. 1), x = 0 .. 5)

 

and I got a error message:

Error, (in ln) numeric exception: division by zero ??
This is normal behavior in seq function or Bug?

 

but  when I'm first calculate the sum sol := sum(f(x, y), y = 0 .. 1) -> x,

and evalf([seq(sol, x = 0 .. 5)]) ->[0., 1., 2., 3., 4., 5.] works fine.

 

Seq-division_by_zero.mw

Mariusz Iwaniuk

My old harddisk recently died and I am currently using a new one. I still have the license code for Maple 2016. Is it still possible for me to install Maple 2016 or 1 license = 1 installation?

hi,

how we can use maple to find solution of singuler integral equation by using product nystrom method or toeplitz method in maple?

Hi everyone, 

 

I am pretty new in MAPLE and I am having trouble doing a really easy thing. 

 

I would like to do a plot and add a legend. 

I know how to do a plot and I succeeded but I don't know how to write the legend. I want a legend that looks like:

K__V = 0.2

I have stored in my K__V the value 0.2. How can I do that? 

I tried with legend = 'K__V' 

This is ok to write the first part, but then how do I write the second one: ' = 0.2 ' ?

Of course I don't want to write 0.2 directly but I want to write K__V in this way the legend will change according to the value of K__V. 

In MATLAB what I want to write is really easy to do: 
legend('K__V=%d',K__V)


I hope I was clear.

Thanks

Hello,

I have an array/vector of values as results of a function:

=maple("Fm:=x->(Qv(x)+&1*Qm(x))/2";B3)

=maple("G:=map(g->evalf(eval(Fm(x),x=g)),[A])")

Now I need the maximum of absolute values of G!!

=maple("max(G)") I have maximum, but I want =maple("max(abs(G))") But there is an error in this expression!!

 

 

Hello everybody,

* The following set of instructions returns me an error

restart:
with(Maplets[Examples]):
A := Matrix(2,2,[1,2,3,4]):
LinearAlgebra:-Transpose(A);

Error, Transpose is not a command in the Maplets:-Examples:-LinearAlgebra package

(it would be the same for any other command from the LinearAlgebra package)


* If I try 

restart:
with(Maplets[Examples]):
with(LinearAlgebra):
A := Matrix(2,2,[1,2,3,4]):
Transpose(A);

the answer is Transpose(...),  as if Transpose was an undefined function (no matter the order of the loading of the two packages)


* In Maplets[Examples] there is a subpackage named LinearAlgebra : could it be the reason of these observed behaviour ?
* Is there any way to fix that other than copying from Maplets[Examples] the only pieces of code I need avoiding thus its complete loading ?
* More generally : is it possible to load a package "partly" by discarding some of its subpackages ?

Thank you for your answers

Maplet file failed to open by double click in windows 7 x64 file browser

There is no response when double click a Maple file

But it runs correctly by using command line

Anyone knows why?

Dear all

 

If its possible in  Maple to change the integral of the sum to  the sum of integrals when I calucle the integral of a function series

 

Thank you

I have the following expression (generated by some other procedure):

This does not have a taylor expansion in pV[6] in the general case because the square roots can become negative:

taylor(xpr,pV[6]);
Error, does not have a taylor expansion, try series()

But I can get an expansion by restrictig the range of pV[6]:

taylor(xpr,pV[6]) assuming -0.01<pV[6],pV[6]<0.01;

So far things are perfectly fine. But when I try mtaylor:

mtaylor(xpr,pV[6]) assuming -0.01<pV[6],pV[6]<0.01;
Error, (in assuming) when calling 'mtaylor'. Received: 'does not have a taylor expansion, try series()'

So the assumption seems to be ignored. I can work around this by expanding in pV[6] first, using taylor, and then expanding the result from that using mtaylor (I really also want the expansions in the other pV components; 6 in total although in this example some do not show up). I'll have to convince myself that this work-around gives the correct result but I think it does. However, I don't particularly like it.

I consider this a bug and am tempted to submit an SCR. But before I do that; is there anything obvious I am missing here?

Thanks,

M.D.

PS: This was done using Maple 15. I'll check newer versions later.

mtaylor_assuming.mw

Solutions are available at http://mcs.open.ac.uk/dr9, however when I open them they appear in Code, I am running Windows 10 and wonder if this is the problem,

Advice would be appreciated.

Hello, when you run an error occurs:

Error, (in plots:-display) unknown plot object: circle
Error, (in plots:-display) expecting plot structure but received: P[0]
Error, (in plots:-display) expecting plot structure but received: PP

I'm not good in Maple. Please help me understand.

Programm: https://dropmefiles.com/Qnkzn

I attempted to show that two lines are parallel.  I started with a problem in Geometry for which I do not have the solution.

I tried several ways with Maple to show this to be true.  Most of the time, I ended when maple could not determine if a-b = c-d, etc.

brg_proof.txt contains a statement of the problem and my latest maple code.

Question: How should I approach the proof, by the compass and straight edge method?  Is this possible in maple?

My problem is: I`d like to parse a value from JSON string and use it as code in Maple.
Ex. This is my value from JSON string: "restart:\na:=5:\nb:=3:\nP:=28*10^(-3):"

and that`s all, I`ve tryed to use JSON.Parse - it says me it`s not JSON. Sscanf - nothing.

Can anyone help me please?

intersection in the geometry package does not seem to recognize assume.

restart: with(geometry):

assume(p[1]<>0, p[2]<>0, p[3]<>0);
assume(q[1]<>0, q[2]<>0, q[3]<>0);
point(T,[p[1],q[1]]);
point(U,[p[2],q[2]]);
point(V,[p[3],q[3]]);
point(Op,[0,0]);

line(OT,[Op,T]);
line(OU,[Op,U]);
line(OV,[Op,V]);

point(B,2*q[2],solve(subs(x=2*q[2],Equation(OU)),y));
coordinates(B);
IsOnLine(B,OU);

PerpendicularLine(AD,B,OT);
ArePerpendicular(AD,OT);
sol:=solve({Equation(AD),Equation(OT)},{x,y});
eval(x,sol);
point(A,eval(x,sol),eval(y,sol));  ## the intersection exists
intersection(xA,AD,OT); ## fails
about(p[1]),about(q[1]);

Hello people in mapleprimes

In the help of parse, there is the following example.

I could not understand why the first one is 4, and next 4^2, and the last 4^3 appeared, there.

Please tell me the way n is increased with the output taking 4, 4^2 and 4^3 sequentially in this example.

n := 0;
                             n := 0
input := "a := 4; a^2; a^3;";
                  input := "a := 4; a^2; a^3;"
parse(input,'lastread'='n','offset'=n,statement);
                               4
parse(input,'lastread'='n','offset'=n,statement);
                               16
parse(input,'lastread'='n','offset'=n,statement);
                               64

I know that it is written in the help that lastread shows the next unparsed character,

with the offset the next statement.

Thanks in advance

taro

First 1118 1119 1120 1121 1122 1123 1124 Last Page 1120 of 2434