Post Reply 
Another xCAS commands --> Prime. discussion
12-19-2019, 02:39 PM (This post was last modified: 05-09-2021 10:58 PM by compsystems.)
Post: #1
Another xCAS commands --> Prime. discussion
Hi HP-Prime Team, sorry for the electronic translation

There is a command that is not included in the latest firmware version.
with_sqrt (True / False)
it's a flag type cmd for factored in terms of irreducible factors with respect to the rational numbers. (In other words, none of the polynomials in the factored form can be factored further without introducing radicals.)


The idea is to work with the command line in the history view without going to the configuration view, for this reason, HP-Prime Team must include with_sqrt(True / False) in the next firmware improvements

sentences to enter the history view to observe the operation of with_sqrt ()
Xcas Code
PHP Code:
test_withsqrt_flag(x):={
  
local poly1;
  
purge(x);
  
with_sqrtFalse ); 
  
poly1 := x^-4*x^-7*x^-41*x^-4*x+35;
  print( 
factorpoly1 ) ); // (x+1) * (x^2-7*x+5) * (x^2+2*x+7)
  
with_sqrtTrue );  
  print( 
factorpoly1 )); // (x+(-√29-7)/2) * (x+(√29-7)/2)*(x+1) * (x^2+2*x+7) 
  
return poly1;
}; 
Find all posts by this user
Quote this message in a reply
12-25-2019, 08:03 PM (This post was last modified: 12-25-2019 08:21 PM by compsystems.)
Post: #2
RE: Another xCAS commands --> Prime. discussion
Hello, In the symbolic environment CAS, the following mathematical expression should return euler_gamma constant


limit(Σ(1/k,k,1,n)-ln(n),n, +infinity) [enter] 0.577215664902 // current hp-prime
limit(Σ(1/k,k,1,n)-ln(n),n, +infinity) [↵] returns euler_gamma // Xcas


for which it is required to add the constant euler_gamma in a future version

euler_gamma [↵] Xcas returns euler_gamma
evalf(euler_gamma) [↵] Xcas returns 0.577215664902
%gamma -> 0.577215664902 // MAXIMA CAS

Frn info. > https://www-fourier.ujf-grenoble.fr/~par...tml#sec201
Eng info. > https://www-fourier.ujf-grenoble.fr/~par...node4.html
Spn info > http://www.eonicasys.com/CAS/xcas/cascmd...d_xcas.txt
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)