LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to solve for polynomial roots using MathScript

Solved!
Go to solution
Those four lines specifically don't help you directly.  It's an example meant to get you familiar with fzero.  It has been so long since I have used matlab or taken a math class, and I don't know specifically how to solve your problem.  I was replying to your inquiry to get a working example of fzero
Message Edited by elset191 on 11-25-2009 10:15 AM
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 11 of 16
(1,712 Views)
Tim thanks for trying - it is the math help I need I am afraid..... 
0 Kudos
Message 12 of 16
(1,700 Views)
You could write the .m file over and over given each set of coefficients... (I have no idea if this VI outputs the right numbers, you'd have to check that)
Message Edited by elset191 on 11-25-2009 10:54 AM
--
Tim Elsey
Certified LabVIEW Architect
Message 13 of 16
(1,695 Views)

Tim - that does in fact work!!  Thank you for that!

 

This calculation will be done thousands of times in the model I am building - if anyone can suggest a way to get this to work without the file I/O that would be very helpful!

0 Kudos
Message 14 of 16
(1,682 Views)
That depends, if you don't want to use Mathscript, this is pretty easy and does not involve file operations.  Eventually you may want to ditch the formula string and use a VI to calculate f(x), but this gets you pointed in the right direction.
Message 15 of 16
(1,678 Views)
Solution
Accepted by topic author Dave@Ventec

Tim and Darin,

 

Got it!!!  Thank you very much for your help!

0 Kudos
Message 16 of 16
(1,674 Views)