Echelon Neuron C Bedienungsanleitung Seite 82

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 267
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 81
62 Functions
Table 21. Binary Arithmetic Operators
Short
Name
Function
add void fl_add(const float_type *arg1,
const float_type *arg2, float_type *arg3);
Adds two floating-point numbers: (arg3 = arg1 + arg2).
sub void fl_sub(const float_type *arg1,
const float_type *arg2, float_type *arg3);
Subtracts two floating-point numbers: (arg3 = arg1 - arg2).
mul void fl_mul(const float_type *arg1,
const float_type *arg2, float_type *arg3);
Multiplies two floating-point numbers: (arg3 = arg1 *arg2).
div void fl_div(const float_type *arg1,
const float_type *arg2, float_type *arg3);
Divides two floating-point numbers: (arg3 = arg1 / arg2).
max void fl_max(const float_type *arg1,
const float_type *arg2, float_type *arg3);
Finds the max of two floating-point numbers: (arg3 = max(arg1, arg2)).
min void fl_min(const float_type *arg1,
const float_type *arg2, float_type *arg3);
Finds the minimum of two floating-point numbers: (arg3 = min(arg1,
arg2)).
Unary Arithmetic Operators
Table 22 lists the unary arithmetic operator functions.
Table 22. Unary Arithmetic Operators
Short
Name
Function
abs void fl_abs(const float_type *arg1, float_type *arg2);
Returns the absolute value of a floating-point number: (arg2 =
abs(arg1)).
neg void fl_neg(const float_type *arg1, float_type *arg2);
Returns the negative of a floating-point number: (arg2 = - arg1).
sqrt void fl_sqrt(const float_type *arg1, float_type *arg2);
Returns the square root of a floating-point number: (arg2 = arg1).
Seitenansicht 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 266 267

Kommentare zu diesen Handbüchern

Keine Kommentare