[Maxima] the angle of a straight line drawn between 2 points
adammaj1 at o2.pl
Mon May 28 11:16:18 CDT 2012
On 27.05.2012 21:25, Richard Fateman wrote:
> On 5/27/2012 11:51 AM, Adam Majewski wrote:
> I don't know if the algorithm is right, but the program can be made more
> succinct, and
> fixed so that b is local...
> something like
> b + (if (b<0) then 1 else 0))
> or even..
> gt(r,s):= (r:float(r-s), r: 0.5*atan2(imagpart(r),realpart(r))/?pi,
> r+(if (r<0) then 1 else 0))
Thx for an answer.
I'm not an expert but in my little experience it is better in Maxima
when definition and initialisation of local variables are separated, like :
instead of :
Is it true or not ?
More information about the Maxima