MATLAB SYMBOLIC MATH TOOLBOX 5 - MUPAD Bedienungsanleitung Seite 2

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 19
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 1
4. Simple arithmetic calculations
Just like MATLAB itself, Mupad can be used as a calculator. Try the following commands
Here, the gamma function and besselJ are special functions the gamma function is the generalization of
the factorial to non-integers, and the Bessel function is the solution to a common differential equation.
Mupad has lots of built in special functions, which can be very useful. Notice also that, unlike MATLAB,
Mupad returns the correct answer for sin(PI). This is because by default, Mupad is not working with
floating point numbers. It will return the exact answer to any calculation. It will only start using floating
point calculations if you start first, or explicitly ask for a numerical value. For example, contrast
In the second case, Mupad gives a floating point number because you typed in a floating point number
(0.5) as the argument to the Gamma function. You can also ask Mupad to compute a numerical value for
an expression with the ‘float’ function
Note the use of the % character this always refers to the result of the last calculation that Mupad has
done.
Note that unlike the MATLAB command window, Mupad lets you go back and change any line, and will
then let you execute the file again with the changed code. The Notebook> menu gives lots of options for
re-doing calculations after a correction.
Seitenansicht 1
1 2 3 4 5 6 7 ... 18 19

Kommentare zu diesen Handbüchern

Keine Kommentare