Getting started with KAlgebra/de: Difference between revisions

From KDE UserBase Wiki
(Created page with 'Du kannst Variablen definieren: {{Input|1=k:=3}}')
(Created page with 'Und sie anschließend benutzen: {{Input|1=k*4}}')
Line 18: Line 18:
{{Input|1=k:=3}}
{{Input|1=k:=3}}


And use them normally:
Und sie anschließend benutzen:
{{Input|1=k*4}}
{{Input|1=k*4}}



Revision as of 12:11, 3 October 2010

Home » Applications » Education » KAlgebra » de

KAlgebra ist ein Programm, das mit Zahlen und symbolisch rechnen kann. Es kann 2D- und 3D-Grafen zeichnen und mathematische Ausdrücke berechnen.

Der Reiter "Konsole"

Wenn du das KAlgebra das erste Mal startest, erscheint ein leeres Fenster. Dies ist der Hauptarbeitsbereich für Berechnungen.

Lass uns mit einem kleinen Beispiel anfangen, das dir zeigt, wie KAlgebra funktioniert. Gib folgendes ein:

2+2

Dann drücke die Enter Taste und KAlgebra zeigt dir das Ergebnis. Ganz einfach!


Aber KAlgebra ist viel mächtiger. Es begann als eine Art einfacher Taschenrechner, hat sich inzwischen jedoch fast zu einem CAS entwickelt.

Du kannst Variablen definieren:

k:=3

Und sie anschließend benutzen:

k*4

And that will give you the result:

12

You can also define functions:

f:=x->x^2

And then use them:

f(3)

Which should return

9.

You can define a function with as many variables as you want:

g:=(x,y)->x*y

The possibilities of defining functions are endless if you combine this with the piecewise function. Let's define the factor function:

fact:=n->piecewise { n=0 ? 1, n=1 ? 1, ? n*fact(n-1) }

Yes! KAlgebra supports recursive functions. Give some values to n, to test it.

fact(5)
fact(3)

KAlgebra has recently started support for symbolic operations, to check it out, just type:

x+x+x+x

or

x*x

It doesn't work on some complex structures, though. Only basic support so far.

Moreover, KAlgebra has support for differentiation. An example of the syntax:

diff(x^2:x)

If you have used KAlgebra, you will have noticed the syntax completion support, which is very helpful.

Another resource that can be useful to learn more about KAlgebra comes with KAlgebra: The Dictionary tab

It contains examples of every function supported by KAlgebra. Maybe this is the best way to learn how to do things with KAlgebra.