1 / 10

Wozu Maple?

Wozu Maple?. Symbolische Algebra Manche Sachen soll man besser nicht von Hand machen kleine Rechnungs Fehler können mehrere Millionen werden – am besten alles 2x überprüfen Schneller Plotten. Einfache Zuweisung.

crwys
Télécharger la présentation

Wozu Maple?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Wozu Maple? • Symbolische Algebra • Manche Sachen soll man besser nicht von Hand machen • kleine Rechnungs Fehler können mehrere Millionen werden – am besten alles 2x überprüfen • Schneller • Plotten

  2. Einfache Zuweisung • а := 68; # weist a einen Wert zurestart; # startet das System neua; # Zeig a ana := 3: # a wird einen Wert zugewiesen, # aber nichts wird angezeigt.a = 3; # a wird keinen Wert zugewiesen, # ‘a = 3’ ist ein Ausdruck (= true)quit # verlasse Maple

  3. Wichtige Konstanten • true, false • infinity • Pi • I

  4. Operationen • a := (((b + c) * d) / e) ^ 2; • x := y!; # Fakultät

  5. Funktionen • a := -3;b := ln ( sqrt ( exp ( abs ( a ) ) ) );c := tan ( sin ( cos ( Pi / 3 ) ) );d := arctan ( % ); # ‘%’ steht für das# letzte Resultaty := x -> x^2 ; # mit ‘->’ kann man # eigene Funktionen # definieren

  6. Prozeduren • fib := proc ( n ) local a, b; # nicht sichtbar # ausserhalb von fib # Prozedur if ( n <= 1 ) then RETURN ( 1 ); fi; a := fib ( n – 1 ); b := fib ( n – 2 ); RETURN ( a + b );end;

  7. Graphik • f := x -> exp(-x^2/10) * sin(x);plot ( f, -2*Pi..2*Pi );

  8. Ableiten, Integrieren, Summe • f := x -> ln(x);diff ( f(x), x ); # einfach ableitendiff ( f(x), x, x ); # 2x ableitenint ( f(x), x ); # integrierenint ( f(x), x=1..2); # bestimmtes Integralsum ( x ^ k, k=1..n ); # Summe

  9. Lösen von Gleichungen • solve ( x ^ 3 – 6 * x = 5, x );evalf ( sin ( 3 ) ); # berechne # ‘dezimalen’ Wert

  10. For und Tabellen • for i from 1 to 4 do aTable[i] := i + 10;od;aTable[22] := 33; # Tabellen kann man # an beliebigen Indizen # Wert zuweisen.

More Related