[chuck-users] Using e
ssalazar at CS.Princeton.EDU
Tue Jan 20 13:33:31 EST 2009
<<< Math.PI >>>;
I think "pi" without Math. was added before Math.PI, so its probably
kept around now for backwards compatibility.
For what its worth, I think the canonical way to get e is actually
Math.E (following the Java convention of capitalizing constant
names). But Math.e works too clearly.
On Jan 15, 2009, at 5:31 AM, Kassen wrote:
> Sorry, list, no chemicals here. I just couldn't resist the title.
> Last night I was answering a question on the forum that involved the
> constant "e". To get e in chuck we go;
> Math.e => float value;
> However to get pi we go simply;
> pi => float another_value;
> This isn't exactly a major issue, compared to some of the other
> issues that we have but it does strike me as somewhat inconsistent.
> Is there a good reason for this? If not should we consider making
> this consistent, for example by stuffing pi in the Math library as
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
More information about the chuck-users