using some math functions with units (log)

using some math functions with units (log) - Values with units give errors with math function like log10 - Messages

#1 Posted: 4/15/2024 8:17:52 PM
Harry Bouma

Harry Bouma

0 likes in 4 posts.

Group: User

unitsproblem.sm (5 KiB) downloaded 36 time(s).

Hi,
I'm trying to create a solution for fatigue strength which makes use of the log10 function.
I can't seem to get it working with values which have units defined for them.
ignoring units also doesn't help for the calculation.
Completely removing units does work, but isn't preferred.
Does anyone have a workaround or method that works with the use of units?


#2 Posted: 4/15/2024 8:46:22 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Since it is an empirical formula, you have to divide the variables by the units you are supposed to assign while solving by hand (here I've assumed the units you used in the assignments are those expected in the formula).

2024-04-15 14_36_31-SMath Solver - [unitsproblem.sm_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 4/16/2024 5:01:32 PM
Harry Bouma

Harry Bouma

0 likes in 4 posts.

Group: User

Thank you very much Davide.
Simple solution that wasn't obvious for me.
#4 Posted: 4/16/2024 7:24:49 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

No problem, somehow the simplest things are the hardest to figure out
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • New Posts New Posts
  • No New Posts No New Posts