modelInverse_sine

Solve y = A*sin(w*x) for x, given y

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This models solves the following non-linear equation

y = A*sin(w*x); -> determine x for given y

Translate model "Inverse_sine" and simulate for 0 sec. The result is printed to the output window.

Parameters

TypeNameDefaultDescription
Realy_zero0.5Desired value of A*sin(w*x)
Realx_min-1.7Minimum value of x_zero
Realx_max1.7Maximum value of x_zero
RealA1Amplitude of sine
Realw1Angular frequency of sine

Components

TypeNameDefaultDescription
Realx_zeroy_zero = A*sin(w*x_zero)

Contents

NameDescription
f_nonlinearDefine sine as non-linear equation to be solved