SMath adds units at the end of the calculation

SMath adds units at the end of the calculation - Poruke

#1 Objavljeno: 2. 2. 2017. 04:53:55
JJTTBB

JJTTBB

0 svidjanja u 5 postova.

Grupa: User

Fajl nije pronađen.Fajl nije pronađen.

Hi... this is my first post here... Great work! Smath is fast and easy to learn.

There is a strange behaviour here... I try to calculate a simple cylinder section area. So Ab= pi*d^2/4
When I add the unit cm^2 , Smath adds 1/m2 * cm2 and no matter what I do, I can't change that... There is no variable in the calculation so no units



Another example

Fajl nije pronađen.Fajl nije pronađen.Fajl nije pronađen.



Anyone know a solution for that?

Thank you in advance.
#2 Objavljeno: 2. 2. 2017. 05:32:55
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

Hello [userlink]JJTTBB[/userlink],

This is not a bug. SMath checks that the unit you assign in the rightmost placeholder is consistent with the units given in the left hand side.

If your intent is just to display a result, or you want to make dimensionless calculations and assign manually the dimensions on the results, right click on the region and select "Ignore units", then this feature will be ignored

2017-02-02 09_28_10-SMath Studio - [Page1_].png


Otherwise you have to assign the units in the LHS, and eventually adjust the result (results are given in base units)

2017-02-02 09_29_10-SMath Studio - [Page1_].png


other informations about units: wiki
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Objavljeno: 2. 2. 2017. 11:42:59
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Like this :

Unit.bmp
  • Novi postovi
  • Nema novih postova