MaplePrimes Questions

Hello, 
Im beginner in Maple so i need a help with the following differential equation:
y'' - y = 0 where y(0) = 0 and y(1) = 1

I solved this but im confused how can i solve it in Maple.

Thank you in advance.

 

Hello Users,

I have a question on my work.

I constructed two different equations that looks different.

Two constants the front of each equations (kappa_T and kappa_S)  have difference too much. (without an error)

 In my own calculations, I found that two expressions should be same.

Is there a possibility of operation error(or calculation error)?

I want to know which process cause this problem and how can i avoid.

Please open attached file. Thanks for reading!! :D

Question_Kappa_T_and_S.mw

 

How can I draw a "regular looking" histogram where all the bars adjacent to each other?

I tried looking into the options for histograms with no luck. I included a picture of what kind of output I am looking for.

Thanks in advance.

Dear all

I have a first-order complex ODE, I would like to use the polar coordinates to find the associated system of the ordinary differential equation then I determine the equilibrium point of the system and deduce that there is at least one limit cycle.

many thanks for your help

syestem_polar_cordinates.mw

 

Hi, 

I can't find a unique way to define a mixture of two random variables that enables at the same time to compute its PDF and generate a sample.
In the attached file you will find two methods :

  1. the first one is the most formal and only CAS are supposed to be able to allow its implementation:
     it enables computing the PDF and the CDF (trivial) but fails to generate a sample.
    (PS : in a first attempt I had defined only the PDF, which should have been enough for method=envelope does work... ... at my opinion)
     
  2. the second method is the one one would use in non CAS languages (for instance Matlab, R, ...). It enables generating a sample (of course) but fails to compute the PDF (which is not very surprising).

So my question: does anyone here would have some suggestions to make one these two methods capable to compute both the PDF (eventually the CDF) and generate samples ?

PS: still have this kind of problems (tomleslie suggested months ago that using interface(rtablesize=10) could help but it's not the case here)
Maple Worksheet - Error
Failed to load the worksheet /maplenet/convert/Mixture_of_random_variables.mw .

 

Download Mixture_of_random_variables.mw

 


 

 

the quartile function gives the wrong answers.

list := [1,2,3,4,5,6,7,8]

Q1 does NOT come back as 2.5 as it should, nor does Q3. I get these weird decimals.

I looked at the help for it but wasn't helpful. All the examples in the help are super complicated. No simple examples like the one I mentioned here.

thanks

Hi everyone:

I have two matrices T(t) and Y[i] :N is natural.how can I do it? tnx.

 

 

 



I am just confused to be getting this error seeings FileTools does not encounter this error when I use it's ListDirectory command:

 

error_for_primes.mw
 

with(ImageTools):

FileTools:-ListDirectory(currentdir())

["IMG_20200116_015953.jpg", "magetools commands.mw"]

(1)

Read("H:\\MAPLE\\Image_Project", format = JPEG)

Error, (in readbytes) permission denied

 

NULL


 

Download error_for_primes.mw



sigma(integral(F(w,cn1,ct1))+integral(F(w,cn2,ct2))+...+integral(F(w,cn80,ct80)))

integral.mw

In a do loop with a try... catch statement I had placed an assignment to a vector element after catch: but before the line printing the lastexception. That the loop didn't perform as expected, but resulted in an error about ListTools:-FormatMessage wanting its first argument to be a string surprised me. Putting the assigment to the vector after the exception printing worked fine.
It seems that rtables are the exception (no pun intended) to the order being irrelevant.
 

restart;
V:=Vector():
for j from 1 to 5 do
  try
   V(j):=j/(j-1)
  catch:
   V(j):=17; # clears lastexception apparently
   printf(cat(StringTools:-FormatMessage(lastexception[ 2 .. -1 ] ),"\n"));
  end try
end do:
#####
restart;
V:=Vector():
for j from 1 to 5 do
  try
   V(j):=j/(j-1)
  catch:
   printf(cat(StringTools:-FormatMessage(lastexception[ 2 .. -1 ] ),"\n"));
   V(j):=17;
  end try
end do:

These simple lines confirm my observation:

restart;
lastexception;
5/0;
lastexception;
5/5;
lastexception;
x:=47;
lastexception;
table();
lastexception;
[1,2,3];
lastexception;
rtable();
lastexception; # Now cleared!


 

Hello Dear Brothers and Sistors,

Can you help me giving a maple program to plot cost function  of a an optimal control modeling ?

Looking forward.

Regards,

hi everyone:

How can I define this matrix in Maple? N is a Natural number. Thank you. 

In my maple ini I redefine I.

 

local a,b,c,I:

 

Every worksheet I create I always end up with an executed line with just "I". It's just annoying to see it as it service no purpose and takes up space at the start of the worksheet.

 

Of course I is a predefined symbol which is why I want to redefine it, redefine it to be _i, say. I've tried unprotect and unassign and all that and it still prints out.

 

Now I always put a restart at the start of a worksheet so I end up getting two lines of the I, which is a total of 4 because it prints a blank line.

 

 

 

Bonjour,
Un connaisseur pourrait-il m'aider s'il vous plaît afin de résoudre un petit problème sur Maple.
J'ai un algorithme qui me renvoie les résultats successifs des nombres utilisés pour faire une multiplication égyptienne.
Sauf que les résultats sont renvoyés sur des lignes différentes avec plusieurs références d'une liste que j'ai nommé "L".

Les résultats sont renvoyés donc ainsi :

L:= [21 , 54 , 47]
L:= [20, 41 , 87]
L:= [2, 8, 12]
L:= [3, 7 , 5]

Comment faire pour que les résultats soient regroupés dans une même liste, c'est à dire :

L:= [21 , 54 , 47, 20, 41 , 87, 2, 8, 12, 3, 7 , 5 ]


Voici l'algorithme :


x := 12:
y := 46:
s := 0;
'x' = x:
'y' = y:
'`résultat`' = s:
while 0 < y do
if type(y, odd) then s := s + x:
y := y - 1:
else x := 2*x:
y := y/2:
end if;
L := [x, y, s];
end do;


I have this results in Maple :
L:= [21 , 54 , 47]
L:= [20, 41 , 87]
L:= [2, 8, 12]
L:= [3, 7 , 5]

How do for have just one list that :

L:= [21 , 54 , 47, 20, 41 , 87, 2, 8, 12, 3, 7 , 5 ]

Hi 

I got, a bit by mistake, a weird result that seems to come from the way "Maple" manipulates infinity (please have a look at the results below)
I couldn't find a correct explanation to these results in the help pages dedicated to infinity or evaluation.

Could anyone explain me why, in some circumstances, 'infinity' seems to be a name (for instance infinity*Pi; does not return  infinity but infiniy/Pi).
Thanks in advance

 

restart:

with(Statistics):

f := PDF(Cauchy(0, 1), x)

1/(Pi*(x^2+1))

(1)

m := int(x*f, x=-infinity..+infinity);

undefined

(2)

p := int(x*f, x);

(1/2)*ln(x^2+1)/Pi

(3)

# Naive "proof" : eval(..., infinity) seems to consider infinity as a name (consistent with
# the first line in help(infinity) without any particular property.
# This seems to be confirmed by the value of p1 and p2 : I expected to get infinity instead
# of infinity/Pi.

p1 := eval(p, x=-infinity);
p2 := eval(p, x=+infinity);
p2 - p1;

infinity/Pi

 

infinity/Pi

 

0

(4)

# Correct "proof" :

a := limit(p, x=-infinity);
b := limit(p, x=+infinity);
b-a

infinity

 

infinity

 

undefined

(5)

# Does Maple treat 'infinity' as a number ?

infinity         - infinity;
infinity*2       - infinity*2;
infinity*(1/3)   - infinity*(1/3);
infinity*0.333   - infinity*0.333;
infinity*sqrt(2) - infinity*sqrt(2);
infinity/Pi      - infinity/Pi;

undefined

 

undefined

 

undefined

 

Float(undefined)

 

0

 

0

(6)

limit(sqrt(2)/x, x=0) - limit(sqrt(2)/y, y=0);
limit(Pi/x, x=0)      - limit(Pi/y, y=0);

undefined

 

undefined

(7)

 


 

Download Infinity.mw

First 479 480 481 482 483 484 485 Last Page 481 of 2308