SMath Studio Forum
»
SMath Studio
»
Questions
»
"Operation cannot be performed with units" for exponential function
Rank: Advanced Member Groups: Registered
Joined: 18/10/2020(UTC) Posts: 50
|
Hi, I get the "Operation cannot be performed with units" error for a complicated equation involving exponential functions which seem to be the culprit: Here's the file: Operation units.sm (18kb) downloaded 8 time(s).Is there a mistake in this equation in SMath ? Here's what it looks like in the original:
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/12/2011(UTC) Posts: 319 Location: italy Was thanked: 109 time(s) in 93 post(s)
|
The main error you made is in obtaining the pulsation from the frequency. Also in the formulation of X5 there were two or three errors of evaluation of the SIN (or cos) of the pulsation multiplied by a time (attention to the use of parenthesis) Operation_units.sm (18kb) downloaded 11 time(s).sergio
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 18/10/2020(UTC) Posts: 50
|
Thank you very much. The formula for ω_n from the book did look suspicious to me so I tried removing f_n from it but it didn't help so I thought that the main problem lies somewhere else.
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,652 Location: Italy Was thanked: 1339 time(s) in 878 post(s)
|
|
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 18/10/2020(UTC) Posts: 50
|
How can I plot the result as x(t) for t=0 to t=12 s ? From what I remember, plots require x as a variable so I tried with u(x) but I still can't make it work even with all the occurrences of t replaced with x (although I'd rather avoid doing that): Operation units fixed with plot.sm (17kb) downloaded 8 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,652 Location: Italy Was thanked: 1339 time(s) in 878 post(s)
|
You have to manage the variable [x] and the result [f(x)] units Edited by user 26 June 2023 18:07:53(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
"Operation cannot be performed with units" for exponential function
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.