Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline EngMath  
#1 Posted : 25 June 2023 20:26:10(UTC)
EngMath


Rank: Advanced Member

Groups: Registered
Joined: 18/10/2020(UTC)
Posts: 50
Poland

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:

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline PompelmoTell  
#2 Posted : 25 June 2023 21:31:07(UTC)
PompelmoTell


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2011(UTC)
Posts: 319
Man
Italy
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
Offline EngMath  
#3 Posted : 25 June 2023 22:23:53(UTC)
EngMath


Rank: Advanced Member

Groups: Registered
Joined: 18/10/2020(UTC)
Posts: 50
Poland

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.

Offline Davide Carpi  
#4 Posted : 26 June 2023 12:13:35(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,652
Man
Italy
Location: Italy

Was thanked: 1339 time(s) in 878 post(s)
Originally Posted by: EngMath Go to Quoted Post
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.



That's a strange hybrid; the equations should be the following:

2023-06-26 11_09_35-Angular frequency - Wikipedia - Mozilla Firefox.png

2023-06-26 11_09_44-Angular frequency - Wikipedia - Mozilla Firefox.png
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline EngMath  
#5 Posted : 26 June 2023 17:09:04(UTC)
EngMath


Rank: Advanced Member

Groups: Registered
Joined: 18/10/2020(UTC)
Posts: 50
Poland

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).
Offline Davide Carpi  
#6 Posted : 26 June 2023 17:41:54(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,652
Man
Italy
Location: Italy

Was thanked: 1339 time(s) in 878 post(s)
You have to manage the variable [x] and the result [f(x)] units

2023-06-26 16_39_37-SMath Solver - [Operation units fixed with plot.sm_].png

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
Users browsing this topic
Guest
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.