# 1.1 Variables in labview mathscript

 Page 1 / 1
This module provides a brief introduction to the use of variables in LabVIEW MathScript.

## Variables in labview mathscript

A variable in LABVIEW MATHSCRIPT is a named value. Using variables allows us to manipulate values symbolically, which is particularly useful when programming.

Suppose we wish to compute the circumference of a circle of diameter 5 units using the formula $c=\pi d$ . We could first set the variable d to a value of 5: >>d = 5 d =5.000 Then we could compute the circumference and assign its value to the variable c : >>c = pi*d c =15.708 To execute this command, LABVIEW MATHSCRIPT computes the product of the value of d (which LABVIEW MATHSCRIPT knows because we earlier set it to 5) and the value of pi (which is a pre defined variable in LABVIEW MATHSCRIPT) and stores the value of the product in the variable c .

Variable names must begin with an upper- or lower-case letter. They may contain letters, digits, and underscores; they may not contain spaces or punctuation characters. LABVIEW MATHSCRIPT is case sensitive, so A and a are different variables.

## Valid variable names

Which of the following are valid variable names?

• a
• B
• ecky_ecky_ecky_ecky_ptang_zoo_boing
• ecky ecky ecky ecky ptang zoo boing
• 2nd
• John-Bigboote

• Valid.
• Valid.
• Valid.
• Invalid, because the variable name contains spaces.
• Invalid, because the variable name begins with a number.
• Invalid, because the variable name contains a dash.

LABVIEW MATHSCRIPT has several predefined variables. The most commonly used include

• ans - the default variable in which computation results are stored.
• pi - π.
• i or j - $\sqrt{-1}$ .
Once assigned, variable names remain until they are reassigned or eliminated by the clear command.

LABVIEW MATHSCRIPT variables can contain several types of numerical values. These types include the following:

• Scalar values - scalar is a mathematical term for a single value (i.e. a number). c and d in are scalar variables.
• Vectors - a vector is an ordered series of numbers.
• strings - LABVIEW MATHSCRIPT variables may also contain strings of characters.

a perfect square v²+2v+_
kkk nice
algebra 2 Inequalities:If equation 2 = 0 it is an open set?
or infinite solutions?
Kim
y=10×
if |A| not equal to 0 and order of A is n prove that adj (adj A = |A|
rolling four fair dice and getting an even number an all four dice
Kristine 2*2*2=8
Differences Between Laspeyres and Paasche Indices
No. 7x -4y is simplified from 4x + (3y + 3x) -7y
is it 3×y ?
J, combine like terms 7x-4y
im not good at math so would this help me
how did I we'll learn this
f(x)= 2|x+5| find f(-6)
f(n)= 2n + 1
Need to simplify the expresin. 3/7 (x+y)-1/7 (x-1)=
. After 3 months on a diet, Lisa had lost 12% of her original weight. She lost 21 pounds. What was Lisa's original weight?
preparation of nanomaterial
Yes, Nanotechnology has a very fast field of applications and their is always something new to do with it...
can nanotechnology change the direction of the face of the world
At high concentrations (>0.01 M), the relation between absorptivity coefficient and absorbance is no longer linear. This is due to the electrostatic interactions between the quantum dots in close proximity. If the concentration of the solution is high, another effect that is seen is the scattering of light from the large number of quantum dots. This assumption only works at low concentrations of the analyte. Presence of stray light.
the Beer law works very well for dilute solutions but fails for very high concentrations. why?
how did you get the value of 2000N.What calculations are needed to arrive at it
Got questions? Join the online conversation and get instant answers!