SQRT(a);



On Fri, 28 Nov 2003, William Springer wrote:

> Just started using Maxima, and I'm having a little problem... Well, two
> problems.
>
> The first problem is that when I take SQRT(a), where a is a large
> integer (in this case, 2220223), I just get back SQRT(2220223).  Does
> this mean a doesn't have a square root?
Maxima always stays with symbolic representations of irrational
numbers and fractions, because this is more exact.
You can force numerical output with
ev(sqrt(2220223),numer);

If you prefer arbitrary precision, do
fpprec: 200;
ev(sqrt(2220223),bfloat);

>
> The second problem is that what I actually need to do is find the square
> root of a mod n, where n is 20490901.  Any tips on how to do that would
> be appreciated..
The Maxima statement for m mod n is:
mod(m,n);

If you need to know more about these things, type
describe(bfoat);
to see the online help.

Regards,

Uli.



> --
> William Springer
> University of Colorado at Denver
> Cogito cogito, ergo cogito sum.
>
>
>
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>

		+-------------------------+
		|   Peter Ulrich Kruppa   |
		|      - Wuppertal -      |
		|         Germany         |
		+-------------------------+