BoeR

50 Reputation

6 Badges

11 years, 101 days

MaplePrimes Activity


These are questions asked by BoeR

Hello,

I was wondering how (or what is the best way) to write a worksheet in which a change of formula is used when a certain value on the y-axis is reached.

So for example: if there is a mass-spring system with damping in it, I would like to change the value of the damping when the displacement/velocity/acceleration has reached a certain value.
So when I apply a force to the mass-spring system, and the acceleration for example is LOWER than 0.2 m/s^2 I use a value of X % damping, but when the value of the acceleration is HIGER than 0.2 m/s^2 I want to apply Y % damping. So in time the curve will increase (when low damping is used) and the curve will decrease (because high damping is used, because the y-value is higher than 0.2 m/s^2), and so on...

I hope somebody has a 'simple' idea. I know what I want to do, but I don't know how to put this down in a formula which I can write in Maple.

Greetings,
Frank

Hello,

I have a question about 'combining' procedures, in like: I would like to write a procedure which refers to a formula containing already a procedure.
I know somebody already posted a sort of similar post in 2009, http://www.mapleprimes.com/questions/36874-Calling-Procedure-Inside-Another-Procedure, but I'm missing the point of what's happening over there...sorry for that.

I just would like to know a general form of how to use a procedure 'inside' another procedure.

Well, in my case I have a formula (let's say 'equation1') containing a procedure which eventually draws a line. Later in my worksheet I use a formula ('equation 2') which is a procedure too, in which I want to substitute a parameter into 'equation1'. But because 'equation1' already contains a procedure I don't know how to solve this situation.

It's pretty hard to explain it on paper, but I hope it's clear.

Frank

Good day,

Proc_-_Mapleprime.mw

I was wondering what goes wrong with the procedure I wrote.
I inserted a short example, otherwise I didn't know how to explain it.

When looking at the Maple sheet:
It concerns determining the eigenfrequency and then specify a factor to that eigenfrequency.
The first plot is the 'critical range expressed in FREQUENCIES'. I plotted this using a procedure.
Now in the second plot I converted the first plot, which is expressed in FREQUENCIES, to a certain critcal range in LENGTH.

Now my point is that I would like to view the reductiefactorvoetgangers(lengte) when I type in for example lengte:=22; but it gives an error. I don't understand why it does that.

In case of the first plot (expressed in FREQUENCIES), i can just simply fill in eigenfrequentiesysteem:=1.7 and then it gives me an answer for reductiefactorvoetgangerseigenfrequentie(eigenfrequentiesysteem) which is equal to 1 (which is correct).

So if anyone can tell me what I do wrong, I would appreciate.
Thank you

Greetings,
Frank 

Hello,

 

Maple_-_Upload.mw

See the upload for my worksheet.

 

When opened: Combine the first picture with the second picture and you will get the third picture, where the green filled box is a 'safe zone'. Now what I want is to find the intersection between the green line (=0.7) and the red line (the curve), which gave me two answers, as I wanted! No problem at all.

 

Now when the fourth picture is combined with the fifth picture this results in the sixth picture. So again I tried to find the intersection between the two lines (this time the green line with the blue line; I just name it to be sure that the idea is clear). But this time Maple doesn't give me the points of intersections. How come? I think it has something to do with the procedures, but I can't figure out what it exactly is.

 

I hope someone can help me out on this.

 

Thanks,

Frank

 

Hello,

I would like to assign a value I got from using the command 'Maximize'. What I gained as an answer is of the following form:
test:=[1234124, [t=124124124]] 

Now my point is to assign both these values to variables, which I can do for the first like:
first:= test[1];

But I just can't find out how to assign the second value.
I was trying it out by using the command 'rhs' but that doesn't work (although, not for me).

Probably a silly question, but yeah..thanks for a reply.

Frank 

1 2 3 Page 1 of 3