Prime command



If you are working with floating point or big floats you can use factor(rational(float(a))) or 
factor(rational(bfloat(a))) as an alternative to primep().  If it does not factor then it is possibly prime as long as 
the x and y are small enough.  For this to work 'a must be equal to x/y where x and y are integers.

You can also check out the next_prime() and prev_prime functions.

Rich


--------------------------------------------------
From: "Leo Butler" <l.butler at ed.ac.uk>
Sent: Tuesday, December 08, 2009 3:09 PM
To: "???????????? ??????" <kotzeve at hotmail.com>
Cc: <maxima at math.utexas.edu>
Subject: Re: [Maxima] Prime command

>
>
> On Tue, 8 Dec 2009, ???????????? ?????? wrote:
>
> < Hello does anyone know how i can use primep for fractals??? The primep is only for integers..If anyone knows how 
> fractals become integers because i have to check
> < if primep(x/y) is true and i can't. I searched for a function that makes fractal to integer but i didn't find 
> sth.Only to float.Thanks for your time!Sorry again...
>
> I assume that you mean you want to convert 'fractions' to integers. In that case, Maxima has
>
> ceiling
> floor
> round
>
> Maxima's online help or reference manual has more information.
>
> Leo
> -- 
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>