Hangar.La tienda de software del Amiga

ci

Desktop calculator for complex numbers

Short:        Desktop calculator for complex numbers
Author:       thomas.radtke@uni-essen.de
Uploader:     thomas radtke uni-essen de
Type:         misc/math or misc/edu
Replaces:     ci.lha
Architecture: m68k-amigaos

new in this release (97/06/26):
some functions, variables, new constants pi and last

Hi #?,

	This is ci, the desktop calculator for operations
on complex numbers. To install, just copy it to c: or
anywhere else in your command path. Call it with 'ci'
and leave it by pressing 'Ctrl-\' (control backslash, EOF).

	ci accepts inputs in the conventional manner, that
is, real and imaginary part are seperated by addition or
subtraction. The imaginary part is multiplied or divided
by i (square root of -1).

	ci knows the following operators:

	a+b, a-b, a*b, a/b	-	the usual
	a^b			-	exponentiation
	@a			-	mean argument (angle)
	|a|			-	modulus
	~a			-	complex conjugation

	ci knows the following constants:

	i			-	square root of -1
	e			-	Euler number
	pi			-	pi
	last			-	value of last expression
					(this is a const for technical
					reasons only, i.e. the user may
					not change it)

	ci knows the following functions:

	re(z)			-	returns the real part of z
	im(z)			-	returns the imaginary part of z
	exp(z)
	sqrt(z)
	sin(z)
	cos(z)
	sinh(z)
	cosh(z)

	ci understands assignments to variables (e.g. a1_2=1)
	
Every trigonometric operation can be acomplished with the
exponentiation operator, e.g.:

	sin(x) == (e^(z*i)-e^(-z*i))/(2*i)

Of course, any root can be computed too, e.g.:

	n-th root of a == a^(1/n)



	Examples:

$ ci
>-1^(1/2)
	6.123032e-17+i*1.000000e+00	<- real part should be 0 !
>2^2
	4.000000e+00+i*0.000000e+00
>e^(4*i+2)
	-4.829809e+00+i*-5.592056e+00
>|1+i|
	1.414214e+00+i*0.000000e+00
>@(1+i)
	7.853982e-01+i*0.000000e+00
>(2+3*i)*(i^2)
	-2.000000e+00+i*-3.000000e+00

	The parser for ci was generated by 'bison'.

	You may ask for improvements, but please understand that
I didn't have the time to answer all incoming mails immediatley.
Let me know if you are using ci for educational or other purposes
on a regulary (once a week or so) basis.

bye,

Thomas

Gratis

Descargar 13 KB

Desde el Amiga: abre Hangar y busca ci.

Autorthomas.radtke@uni-essen.de
Categoríamisc/math
Tamaño13 KB
Param68k-amigaos
OrigenAminet