Calculates the values of a polar parametric curve in 2D.


icon

Inputs/Outputs

  • cu32.png number of points

    number of points is the number of all calculated points. The independent variable is split into equidistant subpoints. The default is 10.

  • cdbl.png start

    start is the start point of the interval. The default is 0.0.

  • cdbl.png end

    end is the end point of the interval. The default is 1.0.

  • cstr.png radius as function of angle

    radius as function of angle is a string representing the formula

    r = r(phi). The formula can contain any number of valid variables.

  • i1ddbl.png X

    X is the array of the values of the first component, r(phi)cos(phi).

  • i1ddbl.png Y

    Y is the array of the values of the second component, r(phi)sin(phi).

  • iu32.png ticks

    ticks is the time in milliseconds to analyze the formula and to produce the X and the Y array.

  • ii32.png error

    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:

    • number of points: 1000
    • start: 0
    • end: 30
    • radius as function of angle: exp(cos(t))-2*cos(4*t)+sin(t/12)^5