"Operation cannot be performed with units" for exponential function

"Operation cannot be performed with units" for exponential function - 消息

#1 已发布: 2023/6/25 14:26:10
EngMath

EngMath

0个赞,共51个帖子。

组: User

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 (17.06 KiB)已下载 1508 次。

Is there a mistake in this equation in SMath ? Here's what it looks like in the original:

#2 已发布: 2023/6/25 15:31:07
sergio

sergio

127个赞,共342个帖子。

组: User

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 (17.45 KiB)已下载 1454 次。

sergio
#3 已发布: 2023/6/25 16:23:53
EngMath

EngMath

0个赞,共51个帖子。

组: User

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.

#4 已发布: 2023/6/26 06:13:35
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Wrote

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 please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 已发布: 2023/6/26 11:09:04
EngMath

EngMath

0个赞,共51个帖子。

组: User

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 (16.57 KiB)已下载 1449 次。
#6 已发布: 2023/6/26 11:41:54
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

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
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • 有新帖
  • 无新帖