problem with units

problem with units - 消息

#1 已发布: 2010/10/14 17:16:16
housen

housen

0个赞,共3个帖子。

组: User

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 ?
#2 已发布: 2010/10/14 17:24:48
maweilian

maweilian

5个赞,共103个帖子。

组: User

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
#3 已发布: 2010/10/14 17:29:14
housen

housen

0个赞,共3个帖子。

组: User

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.
#4 已发布: 2010/10/15 02:56:26
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: Moderator

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!"
#5 已发布: 2010/10/15 06:32:29
housen

housen

0个赞,共3个帖子。

组: User

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

  • 有新帖
  • 无新帖