Logarithm function

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Kumaran
Posts: 73
Joined: Tue Apr 08, 2008 5:23 pm
Been thanked: 1 time

Logarithm function

Post by Kumaran »

how to implement logarithmic function in flow code v4,
i'm able to find the function in ARM,but its not available in PIC,
kindly suggest the equivalent methods for PIC,
i need to calculate log10 value of some expressions;
e.g. log10 (h)=?

Kumaran
Posts: 73
Joined: Tue Apr 08, 2008 5:23 pm
Been thanked: 1 time

Re: Logarithm function

Post by Kumaran »

pls suggest me some solution !

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Logarithm function

Post by Benj »

Hello,

There is no log function in BoostC as such so you cannot call it directly.

The best bet would be to use the look up table approach. Eg work out all the values of log that you will need for your program and store them all into an array. The Articles section of the forum has a good guide on creating look up tables.

Kumaran
Posts: 73
Joined: Tue Apr 08, 2008 5:23 pm
Been thanked: 1 time

Re: Logarithm function

Post by Kumaran »

as i wanted to make dew point calculation, the LOOK UP table approach is not suitable for my apllication.if you have any other method pls suggest me

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Logarithm function

Post by Benj »

The Hi Tech compiler support the log function. There are instructions for using Hi Tech with v4 of Flowcode in the articles section of the forums.

Otherwise I would use a AVR or an ARM as the GCC compiler handles floats and complex calculations quite well.

Kumaran
Posts: 73
Joined: Tue Apr 08, 2008 5:23 pm
Been thanked: 1 time

Re: Logarithm function

Post by Kumaran »

Thank you ! your suggesstion helps a lot

Post Reply