MrMarc

3163 Reputation

18 Badges

17 years, 131 days

MaplePrimes Activity


These are questions asked by MrMarc

 

The question is:

 If the stock price today is 100 and the stock has a anual volatility of 12% what is the probability of that stock

being within a price range of [130 - 140] in 5 months time ?
 

 

Answer:

 

for example If I have a list for A:= [ A, B, C ]:  what command should I use to get the list

displayed with font times roman and size 18 when A is called   ?

 

 

I have a button and a math container where the button code is given below.

The code simple generate 4 random numbers when you press the button and save the random numbers in a list which

is displayed in the math container.

 

with(DocumentTools):
with(Statistics):

to 4 do

r:=evalf(Sample(RandomVariable(Normal(0,1)),1)[1],1);

if not assigned(LL) then LL:=[r] else LL:=[op(LL),r] end if;

end do;

Do(%MathContainer3=LL);
 

 

 

Lets say I have a simple animation such as the code below.

 

restart;
with(plots): 

p := [seq([x, 30*x-x^2], x = 0 .. 30)]: 

An := proc (x)

pointplot(p[round(x)], axes = box, color = red, symbol = solidcircle, symbolsize = 30)

end proc:

animate(An, [x], x = 1 .. nops(p), frames = nops(p), trace = nops(p)) ;

 

 

Now I want a Button (Embedded Component) to start this animation. How can this be done ?

 

I want to be able to assign an external jpg image to a variable in Maple and then assign that varaible to the background command

in animate. In other words I want to display an animation on top of an external jpg image.

 

I know how to view an external image in a maplet

restart; with(ImageTools); A := Read("..........jpg"); View(A)

 

I also know how to preview an external JPG image

plots[display](ImageTools:-Preview(ImageTools:-Read("...........jpg")), axes = none)

 

First 25 26 27 28 29 30 31 Last Page 27 of 35