Existing CAS commands --> Prime discussion
|
06-27-2017, 09:00 PM
(This post was last modified: 06-27-2017 09:03 PM by Anders.)
Post: #7
|
|||
|
|||
RE: Existing CAS commands --> Prime discussion
(06-27-2017 05:04 AM)parisse Wrote: Some comments: Sorry if I miss understand you above: isprime on HP Prime return one value either true/false (if it is prime or not = 1/0 =) is_pseudoprime in Xcas returns to values 2/1/0. 2 if it is true prime, 1 if it is a pseudo prime number otherwise it return 0. So not sure what you mean....? For very large numbers I still think is_pseudoprime is very valuable, or do you always calculate if every number is prime fully in isprime on HP Prime regardless on how large the number is? I can see the value of realroot, complexroot and rationalroot for use with polynomial functions. I understand the distinction in how you arrive at the solution (algorithms). I can also see how this is useful in calculus (sign analysis of the function). But then again, if I read you correctly and based on my own experience, zeros() always give you all roots exactly regardless. so... if you have all the roots exactly in Z if possible and also as expression of radicals if possible, if not then a decimal number within +/- epsilon error. So what does realroot give us that zeros() does not. Same applies to complexroot() vs czeros(). Great that Z/pZ works 1:1 :-) also with vectors and matrices |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)