Loading [MathJax]/extensions/tex2jax.js

You are here: Start » Tutorial Exercises » Generating Plots (formulas)

Generating Plots (formulas)

Aim

Create an application that creates plots for the following mathematical functions:

  • Linear function: y=x
  • Sine function: y=sin(180 * x)
  • Quadratic function: y=x * x
  • Threshold function that returns value 0.5 * sin(x * 360) if x is smaller than 0.5, otherwise it returns 0.

Function arguments should be provided as Real values.

Input

The defined parameter range.

Output

Created plots should be presented using a single preview window.

Hints

Use Formulas to calculate function values.

CreateRealSequence filter should be used o create series of real values in a specified range.

Use RealArrayToProfile filter to create a profile that can be used to present a function's plot.

Labeling connections is explained in this article.

Solution (FIS)

►Click here to show the solution.

Further Readings

  • Formulas - Detailed information about using formulas.