11-04-2009 11:56 AM
Hi Tim,
usually Sin&Cos is slightly faster than Sin and Cos seperately.
If I remember right there is a special FPU command that computes Sin&Cos simultanously (they share the same lookup tables, it's just a different offset into the table...)
11-04-2009 12:04 PM
11-04-2009 04:23 PM
Given the short time between idea and implementation there are bound to be a few boneheaded mistakes, but here is the unlocked LV9 version of my code. I thought it was getting out-of-hand until I checked out the hierarchy for the Formula String Evaluation VIs.
11-04-2009 05:04 PM
11-04-2009 05:34 PM
11-04-2009 06:09 PM - edited 11-04-2009 06:10 PM
A small bug was introduced in the backsave to 8.6 process, the parameters for the '^' operator should be -2 instead of 2, that is how I tell if I want to reverse the order. (In FindFunction.vi)
New version here.
02-13-2012 04:23 PM
Found this thread looking for info on benchmark of formula node versus regular code and I gather that there is none.
This is brilliant, Darin.
There is an undocumented feature in the code though (or at least I did not find the doc), which I thought people might be interested in
to generate a VI with more than one inputs (e.g. for multiparameter functions) just declare those parameters with a predefined constant value, as in the example (x=1.0).
example:
DBL x=1.0,y=2.0,z;
z=sin(x)/(3x^2-3*2x+y)^2;
results in:
very cool!
Question 2: how difficult would it be to translate the G diagram into a Formula Node? Just kidding.
Although this piece of code is probably superseded by your iPad winning Math Tool, I never could get the latter work in LV 2010, whereas this one seems to work just fine in LV 2011.