Getting started with KAlgebra/it: Difference between revisions

From KDE UserBase Wiki
(Created page with "dovrebbe dare come risultato {{Output|1=9.}}")
(Created page with "Puoi definire una funzione con tutte le variabili che vuoi: {{Input|1=g:=(x,y)->x*y}}")
Line 31: Line 31:
dovrebbe dare come risultato {{Output|1=9.}}
dovrebbe dare come risultato {{Output|1=9.}}


You can define a function with as many variables as you want:
Puoi definire una funzione con tutte le variabili che vuoi:
{{Input|1=g:=(x,y)->x*y}}
{{Input|1=g:=(x,y)->x*y}}



Revision as of 08:05, 5 February 2011

Inizio » Applicazioni » Educazione » KAlgebra/it » it

KAlgebra è una calcolatrice con funzioni simboliche e di analisi che ti permette di visualizzare funzioni in 2D e 3D così come di calcolare facilmente espressioni matematiche.

La scheda Console

La prima volta che avvii KAlgebra viene mostrata una finestra vuota, è l'area di lavoro principale per il calcolo.

Iniziamo con un piccolo esempio di come funziona KAlgebra, digita semplicemente:

2+2

Poi premi Invio e KAlgebra ti mostrerà il risultato. Finora è facile.


KAlgebra però è molto più potente di così. È iniziata come una semplice calcolatrice, ma ora è quasi un CAS.

Puoi definire variabili in questo modo:

k:=3

ed utilizzarle normalmente:

k*4

e questo ti darà come risultato:

12

Puoi anche definire funzioni:

f:=x->x^2

e poi utilizzarle:

f(3)

dovrebbe dare come risultato

9.

Puoi definire una funzione con tutte le variabili che vuoi:

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.