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 housen  
#1 Posted : 15 October 2010 00:16:16(UTC)
housen

Rank: Newbie

Groups: Registered
Joined: 14/10/2010(UTC)
Posts: 3

Hi

i've got a problem with units.
After the calculation of a function Smath Studio shows
a result like this :

B(3.25*'m)=0.6246*'m^{{16386721669152500000000000000000-1638672166915250*10^16}/{5000000000000000*10^16}}

The exponent of the meter unit is almost zero ; so => m^0 = 1 => there should be no unit.


When i calculate the result directly (without first defining the function) i get :

({b+h}/L(3.25*'m))^0.63 = 0.6246

This result is right. (no unit)

When i change the function parametes (f.i. 0.63 => 1.5),
the strange unit vanishes.

I think it's got something to do with dividing by a very small number somewhere
internally.

I don't know how to post the sm file or a picture.
Can someone help me ?

Edited by user 15 October 2010 00:20:08(UTC)  | Reason: Not specified

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

Offline maweilian  
#2 Posted : 15 October 2010 00:24:48(UTC)
maweilian


Rank: Advanced Member

Groups: Registered
Joined: 09/01/2010(UTC)
Posts: 102
Man
United States
Location: Oregon, USA

Was thanked: 5 time(s) in 5 post(s)
Dear housen,

It would certainly be easier to answer your question if we could see it within Smath.

Please see this wiki page for help on posting images and Smath expressions:

Notes on Using the Forum
Will Massie
Mechanical Engineer
Oregon, USA
Offline housen  
#3 Posted : 15 October 2010 00:29:14(UTC)
housen

Rank: Newbie

Groups: Registered
Joined: 14/10/2010(UTC)
Posts: 3

Thanks for the fast reply.
After reading the starters page, here's a screenshot :



As you see :

1st result : 0.62*'m^{{16386721669152500000000000000000-1638672166915250*10^16}/{5000000000000000*10^16}}
(which actually is similar to 0.62 m^0 = 0.62)

2nd result : 0.62 which is correct.

Edited by user 15 October 2010 00:46:26(UTC)  | Reason: Not specified

Offline omorr  
#4 Posted : 15 October 2010 09:56:26(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello housen,

If the result looks like this as it was by calling function B(z), then there is likely to be connected with the symbolic processor of SMath.

Just select the definition of function B(z), then right click and choose Optimization|Numeric, or choose from the menu Calculation|Optimization|Numeric. After that you will have by calling the B(z)=>

B(3,25m)=0.62

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline housen  
#5 Posted : 15 October 2010 13:32:29(UTC)
housen

Rank: Newbie

Groups: Registered
Joined: 14/10/2010(UTC)
Posts: 3

Thank you, this did the trick.
Very nice program !

Users browsing this topic
Guest
Similar Topics
Strange problem with units and range variables/implicit loops (Bugs & Problems)
by mkraska 25/02/2019 21:30:20(UTC)
Problem with units in formula (Questions)
by Speedracer 02/08/2018 12:20:49(UTC)
Problem with units... (Bugs & Problems)
by JJTTBB 03/02/2017 03:46:35(UTC)
Problem with units in "if" function (Bugs & Problems)
by Janusz 10/12/2014 12:20:07(UTC)
Problem with units (Bugs & Problems)
by jessedavis 12/07/2011 01:43:06(UTC)
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.