Numeric

MGI Get Real Quadratic Roots

Gets the real roots of the quadratic equation Ax^2 + Bx + C = 0. If there are no real roots, then both outputs are NaN. If there is a double root that is real, then both outputs are equal to the double root. If the coefficients correspond to a linear equation (i.e. A is zero) then Root1 is the solution to the linear equation and Root2 is NaN. This VI is configured to run as a subroutine.

MGI Nth Root

Take the nth root of x. Handles x<0 when n is odd, returning the negative real root.

MGI Integer Divide+

Perform an integer divide operation, checking for a divide by zero error. Freeware from Moore Good Ideas, www.mooregoodideas.com. Do not remove this line.

MGI Compound And Merge VI

Merge VI for dropping the compound arithmetic node with "And" selected.

MGI Compound Multiply Merge VI

Merge VI for dropping the compound arithmetic node with "Multiply" selected.

MGI Compound Or Merge VI

Merge VI for dropping the compound arithmetic node with "Or" selected.

MGI Number to Digits

Converts a single I32 into an array of digits, in order of increasing significance. If the input number is negative, the most significant digit (last element of the array) is also negative. All other digits are always non-negative. By default, the output digits are the digits used to represent the number in base 10, though the base can be changed. For example, the binary representation can be obtained by wiring the value 2 to the Base input. Note that Base is coerced to a minimum value of 2. As long as no coersion is required, the original number can be recreated as N = Digits[0] * Base^0 + Digits[1] * Base^1 + Digits[2] * Base^2 + ... + Digits[n] * Base^n

MGI Zero if NaN

Changes a double's value to '0' if it is 'NaN'.