Example Code

Solve a Polynomial Using the Roots Function Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

 

Overview
This example is uses to solve the simple calculation for the polynomial/

 

Description
This VI uses the Roots MathScript function to solve a polynomial with descending order coefficients. 
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

 

  1. Enter the coefficient array
  2. Run VI and will show a complex double as answer.

 

Additional Information or References
VI Block Diagram

1.png 

 

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
AJ.Geissler
Member
Member
on

The disadvantage for this solution in Labview 2009 is, that you need a professional development version.

In Labview 8.6.1 and lower, mathscript is also supported in the "Full Development Version".

Why don't you take the Labview Function "Polynomial Roots.vi" ?