Volker Lehner

25 Reputation

2 Badges

7 years, 329 days

MaplePrimes Activity


These are questions asked by Volker Lehner

Hello,

I'm new as to write programs in Maple.

My problem is: How can i write program code into an empty worksheet?

How can i insert new commands into an existing program/procedure?

What do i have to do?

Can you help me please for my first steps, i didn't find any helpful information about this.

Thanks in advance

Volker

Hi,

Although i can evaluate speed, displacement and accelleration, i can't plot these functions.

The error message is:

What am i doing wrong in my definitions?

Thank you in advance.


 

"with(Units[Simple]):"

v := proc (t) options operator, arrow; Units:-Simple:-`*`(Units:-Simple:-`*`(Units:-Simple:-tanh(Units:-Simple:-`*`(Units:-Simple:-`+`(Units:-Simple:-`*`(Units:-Simple:-`*`(t, Units:-Simple:-sqrt(F)), Units:-Simple:-sqrt(c)), Units:-Simple:-`*`(Units:-Simple:-arctanh(Units:-Simple:-`*`(Units:-Simple:-`*`(v__0, Units:-Simple:-sqrt(c)), Units:-Simple:-`/`(Units:-Simple:-sqrt(F)))), m__0)), Units:-Simple:-`/`(m__0))), Units:-Simple:-sqrt(F)), Units:-Simple:-`/`(Units:-Simple:-sqrt(c))) end proc:

NULL

NULL

NULL

F := 2800.0*Unit('N')

 

c := .7*Unit('kg'/'m') 

 

m__0 := 1400*Unit('kg') 

NULL

v__0 := 10*Unit('m'/'s')

v__e := v(120*Unit('s')) 

t__0 := 0*Unit('s')

``

``

v__e = 63.19906538*Units:-Unit(m/s)"(->)"63.199*Units:-Unit(m/s)

NULL

``

a := proc (t) options operator, arrow; Units:-Simple:-`*`(Units:-Simple:-`*`(F, Units:-Simple:-`+`(1, Units:-Simple:-`-`(Units:-Simple:-`^`(Units:-Simple:-tanh(Units:-Simple:-`*`(Units:-Simple:-`+`(Units:-Simple:-`*`(Units:-Simple:-`*`(t, Units:-Simple:-sqrt(F)), Units:-Simple:-sqrt(c)), Units:-Simple:-`*`(Units:-Simple:-arctanh(Units:-Simple:-`*`(Units:-Simple:-`*`(v__0, Units:-Simple:-sqrt(c)), Units:-Simple:-`/`(Units:-Simple:-sqrt(F)))), m__0)), Units:-Simple:-`/`(m__0))), 2)))), Units:-Simple:-`/`(m__0)) end proc:

NULL

a__e := a(120*Unit('s'))

NULL

a__e = 0.2939066600e-2*Units:-Unit(m/s^2)"(->)"0.29391e-2*Units:-Unit(m/s^2)

``

"`s__a`(t):=(∫)[`t__0`]^t(tanh((tau sqrt(F) sqrt(c)+arctanh((`v__0` sqrt(c))/(sqrt(F))) `m__0`)/`m__0`) sqrt(F))/(sqrt(c)) ⅆtau:"

NULL

s__e := s__a(120*Unit('s'))

NULL

s__e = 6497.492630*Units:-Unit(m)"(->)"6497.5*Units:-Unit(m)

NULLNULL

 

v(2*Unit('s')) = 13.85629668*Units:-Unit(m/s)"(->)"13.856*Units:-Unit(m/s)

NULL

NULL

"Z(t):=[[[`s__a`(t)],[v(t)],[a(t)]]]:"

NULL

Vektor für Weg, Geschwindigkeit und Beschleunigung:

``

Z(120*Unit('s')) = Matrix(%id = 4626704194)NULL

NULL

NULL

v(t)"->"

NULL

NULL

NULL

NULL

NULL

NULL

NULL

``

NULL

NULL


 

Download Berechnungen.mw

Hello,

When starting Maple, i get an error message like:

 

All Drivers are up to date, Im running a system Win10-64Bit on a notebook.

 

Has anybody had the same problem?

Thanks in Advance

Hi!

I have solved an ODE and defined some physical values with Units.

Now i want to calculate the speed at a time of 120s for example, but the evalustion does not show a result.

I want to have a result like ve=63m/s for example and  not ve=v(120s)

Further more if calculating the complete worksheet, the diagramm settings are set to default and i can not see the curve like before. Is there a way to keep user defined settings?

Has somebody an idea what's going wrong?

Calculating completely without units works.

Thank you in advance

Volker
 

"v(t):=(tanh((t sqrt(F) sqrt(c)+arctanh((`v__0` sqrt(c))/(sqrt(F))) `m__0`)/`m__0`) sqrt(F))/(sqrt(c))"proc (t) options operator, arrow; tanh((t*sqrt(F)*sqrt(c)+arctanh(v__0*sqrt(c)/sqrt(F))*m__0)/m__0)*sqrt(F)/sqrt(c) end procNULL

F := 2800Unit('N') = 2800NULL

 

c := .7*Unit('kg'/'m') = .7*Units:-Unit(kg/m)NULL

 

m__0 := 1400*Unit('kg')= 1400*Units:-Unit(kg)NULL

NULL

v__0 := 10*Unit('m'/'s')

10*Units:-Unit(m/s)

(1)

v(t)"->"

v__e := v(120*Unit('s'))

``

``

v__e = v(120*Units:-Unit(s))NULL

``


 

Download Berechnungen.mw

 

Page 1 of 1