Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Qunit Calculator

Qunit

Function: qunit (<n>) Returns the principal unit of the real quadratic number field sqrt (<n>) where <n> is an integer, i.e., the element whose norm is unity. This amounts to solving Pells equation a^2 - <n> b^2 = 1.

          (%i1) qunit (17);
          (%o1)                     sqrt(17) + 4
          (%i2) expand (% * (sqrt(17) - 4));
          (%o2)                           1

(%o1)                                true
(%i2) 

Qunit Example

Related Examples

qunit

qunit(15);

Calculate

qunit

qunit(34);

Calculate

qunit

qunit(15);

Calculate

qunit

qunit(34);

Calculate