From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem regarding exponetial

-9.998571264E+18 ,i want to calculate the exponential of this no. ,my result comes zero plz help ,

0 Kudos
Message 1 of 3
(1,649 Views)

Hi ajit,

 


@ajit107 wrote:

-9.998571264E+18 ,i want to calculate the exponential of this no. ,my result comes zero plz help ,


So you want to calculate e^(-1E+19) - and now you wonder why you get 0 as result?

It's the correct answer (in terms of floating point algebra)! What is your expected result?

 

Using LabVIEW I get these results:

e^(-100) = 3.72e-44

e^(-200) = 1.38e-87

e^(-300) = 5.15e-131

e^(-500) = 7.12e-218

e^(-700) = 9.86e-305

e^(-745) = 4.94e-324

minimum value for DBL

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(1,643 Views)

As Gerd already said, zero is correct. We cannot help you to get a different result.

0 Kudos
Message 3 of 3
(1,614 Views)