Fw: Tutorials covering iteration, lists and debugging?
Subject: Fw: Tutorials covering iteration, lists and debugging?
From: George Leeman
Date: Wed, 24 Jul 2013 09:02:55 -0700 (PDT)
Richard,
? ?Maxima distinguishes case in variable names, which explains your problem:
(%i1) %PI, numer;
(%o1) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? %PI
(%i2) %pi, numer;
(%o2) ? ? ? ? ? ? ? ? ? ? ? ? ?3.141592653589793
---George Leeman
--------------------------------------------------------------------------------
From: Richard Owlett <rowlett at cloud85.net>
To: "Maxima at math.utexas.edu" <Maxima at math.utexas.edu>
Sent: Wednesday, July 24, 2013 11:45 AM
Subject: Tutorials covering iteration, lists and debugging?
I'm new to Maxima and learning it on my own.
This a only slightly contrived example of what causes me grief.
(%i1) numer: true$
dTHETA: (2 * %PI/10)$
THETA: 0$
table: makelist()$
for j: 0 step (dTHETA) thru ( 2 * %PI) do
? ( table: append(table,[sin(THETA)]),
? ? THETA: THETA + dTHETA);
table;
THETA;
dTHETA;
(%i2)
(%i3)
(%i4)
(%i5)
Unable to evaluate predicate 0 > 2*%PI
-- an error. To debug this try: debugmode(true);
(%i6)
(%o6) []
(%i7)
(%o7) 0
(%i8)
(%o8) 0.2*%PI
Why the error at %i5 ?
Why isn't %o8 showing a floating point representation?
TIA
_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima