constant (basic)



This might be a start--if you have something specific in mind, likely somebody will have an idea for you

 (%i1) numerval(%z, (1+sqrt(7))/2);
 (%o1) [%z]

 (%i2) declare(%z, constant);
 (%o2) done

Tell Maxima that %z^2 = (2*%z+3)/2)

  (%i3) let(%z^2, (2*%z+3)/2);
  (%o3) %z^2 --> (2*%z+3)/2

Simplify powers of %z

  (%i4) letsimp([%z^2,%z^3,%z^4]);
  (%o4) [%z+3/2,(5*%z)/2+3/2,4*%z+15/4]

I think maybe numerval assumes a floating point value--oops

 (%i6) float(%z);
 (%o6) (sqrt(7)+1)/2

 (%i7) float(%);
 (%o7) 1.822875655532295


So %1 should be  numerval(%z, 1.822875655532295). But you might check the user documentation for numerval.



--Barton


________________________________
From: maxima-bounces at math.utexas.edu <maxima-bounces at math.utexas.edu> on behalf of Ricardo JF <rcrdjf at hotmail.com>
Sent: Saturday, December 7, 2013 08:09
To: maxima at math.utexas.edu
Subject: constant (basic)

i know that %pi,%phi,%e are constants, but

how can i create a particular one:

example:

r --> (1+sqrt(7))/2=1,82287565553

%r,numer;  -->1,82287565

thanks.