Getting started with KAlgebra/uk: Difference between revisions

From KDE UserBase Wiki
(Created page with 'Почнімо з простого прикладу роботи KAlgebra. Просто введіть: {{Input|1=2+2}} Після цього натисніть клавішу ...')
(Created page with 'Але можливості '''KAlgebra''' значено ширші за продемонстровані у нашому прикладі. На початку свого роз...')
Line 12: Line 12:




However, '''KAlgebra''' is much more powerful than that. It started as a simple calculator, but now it's almost a [http://en.wikipedia.org/wiki/Computer_algebra_system CAS].
Але можливості '''KAlgebra''' значено ширші за продемонстровані у нашому прикладі. На початку свого розвитку програма була звичайним калькулятором, але поточна її версія дуже близька до того, що ми можемо назвати [http://en.wikipedia.org/wiki/Computer_algebra_system системою комп’ютерної алгебри].


You can define variables this way:
You can define variables this way:

Revision as of 14:18, 2 October 2010

Other languages:

KAlgebra — калькулятор з можливістю виконання символічних операцій та дій математичного аналізу. За допомогою цієї програми ви зможете будувати графіки функцій на площині та зображення поверхонь у просторі та виконувати математичні обчислення.

Вкладка консолі

Після запуску KAlgebra ви побачите порожнє вікно: це основна робоча область для виконання обчислень.

Почнімо з простого прикладу роботи KAlgebra. Просто введіть:

2+2

Після цього натисніть клавішу Enter, і KAlgebra покаже вам результат обчислень. Все дуже просто.


Але можливості KAlgebra значено ширші за продемонстровані у нашому прикладі. На початку свого розвитку програма була звичайним калькулятором, але поточна її версія дуже близька до того, що ми можемо назвати системою комп’ютерної алгебри.

You can define variables this way:

k:=3

And use them normally:

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.