MaplePrimes Questions

Search Questions:

Latest Questions Latest Questions Feed

We want to add 5 to the list L:

with(ListTools):

L:=[1,3,6,7];

L:=[L,5];

L:=Flatten(L);

 

I think there must be an easier way to do this, I would be thankful if someone let me know.

Can we define functions in Maple? If so, what is the difference between a user-defined function and a procedure?

I have a loop in my program. It sometimes takes a long time to run. I want to output a value of a variable that indicate how many jobs has been done. Since this value changes constantly, so the ordinary print method will generate a large amount output. Is there any way I can make this value shows in just one area dynamically?

Hi,

maybe anyone knows a workaround for this: draw a rectangle in MapleSim, select the menu with the filling tool and browse for an image. The imported image (gif,jpeg, what you want) does not show up properly, it is stangely distorted. I really need this feature because i want to create some demo sheets to show how to do things in MapleSim.   I use MapleSim2 with latest updates.

 

Thanks

 

The usual optimization constraint in Maple looks like: con := [ w[1] <= 1,  w[2] <= 1,  w[1] >= -1,  w[2] >= -1, w[1] + w[2] = 1 ]

 I was wondering if it is possible to have a constraint where the

different weights w[1] , w[2]  can only take the values   -1 , 0 , 1   

Hello

Does anybody hasa suggest how to quickly get the "initial conditons" of a (control) loop in MapleSim ?

When I'm debugging loops in MaplSim I'm missing a way to get the inital conditions and then to be able to see the (first) numerical values in each probe or on the "wires/ports".

Does something like this exit, or is it to be pushed on the "suggestion" list.

This applies also to PDE resolutions, the "get Initial Condition" run is a good trick to first check your model before running it.

Good Morning,

Would anybody be kind to help me with the attached worksheet. Most of the worksheet worked except for the last procedure where I was trying to call a procedure called cog that output the center of gravity of a concrete block xyzc in another procedure called Inertia. Please, how do I acheived this in Maple.

Regards

Moses

Hello

I want to mae a single output block custom for a signal generator , my function is a couple of pages of Maple calcuations, but easy to put inside a proc(time) ... end proc how to generate this. Your Real block does not allow me to type all y code. Making it from scratch from your embedded functions  with connections lines is possible, but a hell of a work, while its all there in Maple

 

thanks in advance

Ivar

 

Hello

Is there a way to change globally all time horizontal axis limits in one go ? I have to define each time each of my 12 probe signals, parameter by parameter, axis by axis, even if I'm using the same values.

Im missing in the right "parameter plot" window a way to define globally the time interval for all plots, and not necesarily the time interval of the full simulations, in particular to leave the system stabilise and get rid of the initial peaks and oscillations.

I regularly choose a function for my numerical analysis class that looks bad (i.e., has jumps) when graphed on a small domain.  For example,

plot(ln(1+x), x = -10^(-15) .. 10^(-15))

If I increase Digits or use a Taylor series to replace ln(1+x), the graph looks fine.

I tried this with cos(x) - x as follows:

plot(cos(x)-x, x = -10^(-16) .. 10^(-16))

Hello,

I have an equation which is   Y=A*x^3 +B*x.     Y=-60..60  and  x=-1..1

How can I find the A and B parameters using Maple?

thanks

Bengu

So MapleSoft has sold out to a Japanese engineering company. I have lost all hope that the company will ever care about mathematicians again.

It used to. But for years it has all been about engineering. The new features that mathematicians care about get fewer every year. All R&D seems to be on the MapleSim, Matlab integration etc or interface.

<p>I have the following code:</p>
<p> </p>
<p> for D5d_counter from 1 to 1000 do<br />
increment := 0.1:<br />
D5d_incr := initial_D5d + increment:<br />
D5d_decr := initial_D5d - increment:<br />
energy_D5d_init := energy1d(initial_D5d);<br />
energy_D5d_incr:= energy1d(D5d_incr);<br />
energy_D5d_decr := energy1d(D5d_decr);<br />
#evalM(cat("plot(",convert(P[1],string), ",",convert(P[2],string), ", '+')"))</p>

I have always wanted to know why the lognormal distribution in the Black & Scholes (BS) option pricing model

is assumed to have a mean of  T*(r-0.5*sigma^2 ) . I have seen various explanation but non that make any sense.

I know that the mean in a lognormal distribution is exp(u+0.5*sigma^2) but why does it suddenly become

T*(r-0.5*sigma^2 ) in the BS model ?   I can understand the T = mean proportional to the time increament but why does

First 789 790 791 792 793 794 795 Last Page 791 of 1121