+1
Answered

Results of calculation in IQANdesign

Richard Kowalczyk 4 years ago in IQANdesign • updated by Gustav Widén (System support) 4 years ago • 7

Hi everyone,

In my recent program

Image 2215

Image 2216

Image 2217

Value 335.78 is closer (good enough for the purpose of my program) to calculated value in Mathcad

Image 2220

Any enlightenment would be much appreciated

Using

Image 2219

Kind regards,
Richard Kowalczyk
RKad Engineering
32 Kingussie Ave
Castle Hill NSW 2154
Australia

📲 :+61 431 639 295

E: richard.kowalczyk@rkad.com.au
W: www.rkad.com.au

+1

The problem seems to be with the PowerOf function. The result below should be 8.

Using IQAN Design 5.04.8.5179

+2

Try using floating point numbers as arguments.

For example: (I use simulator, IQANdesign 6.02.10.5706): 

+2

As Aleksey wrote, use real values for this function to have the precision you need for small values. 


The PowerOf() function in IQANdesign determine its value type based on the input. 


When both the base and exponent are integers, the result of the PowerOf() will also be an integer. 


Here is an example: