Owning Palette: 1D & 2D Evaluation VIs
Requires: Full Development System
Calculates the values of a polar parametric curve in 2D.
Add to the block diagram | Find on the palette |
number of points is the number of all calculated points. The independent variable is split into equidistant subpoints. The default is 10. | |
start is the start point of the interval. The default is 0.0. | |
end is the end point of the interval. The default is 1.0. | |
radius as function of angle is a string representing the formula r = r(phi). The formula can contain any number of valid variables. |
|
X is the array of the values of the first component, r(phi)cos(phi). | |
Y is the array of the values of the second component, r(phi)sin(phi). | |
ticks is the time in milliseconds to analyze the formula and to produce the X and the Y array. | |
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
Let be the angle and r() the radius in polar coordinate notation. Then it is:
x = r()cos
y = r()sin
where runs over the interval.
The function
r(t) = exp(cos(t)) – 2*cos(4*t) + sin(t/12)5
describes a butterfly curve in the plane in polar coordinates, as shown in the following illustration. You can generate the illustration by entering the following values on the front panel: