Thread: [Gcalc-devel] Re: Fact(a) doesn't seem to work
Status: Alpha
Brought to you by:
mjarrison
From: Mike A. <ar...@gr...> - 2003-10-01 17:34:04
|
On Wed, Oct 01, 2003 at 08:37:54AM -0700, Paul Clark wrote: > I type in fact(48) and get an error: > ERROR: Undefined Constant The function for factorial is an exclamation point. Like this: 4! -Mike Arrison |
From: Mike A. <ar...@gr...> - 2003-10-01 18:12:47
|
On Wed, Oct 01, 2003 at 10:56:28AM -0700, Paul Clark wrote: > Let me explain I was ambiguous in my reply... >=20 > Under the catalog for GraphCalc there is a fact(a) function. My > thoughts were that this is a function to return either the prime > factorization of the given number or the list of proper factors for the > given number.=20 >=20 > So the results might look something like this > Fact(48)=3D > {Prime Factorization} 2^4*3 > {Proper Factor List} [1,2,3,4,6,8,12,16,24,48] Ah, I get it. fact(48) should factor a number. I was thinking factorial (completely different). Anyway, GraphCalc doesn't currently have a factor feature, and I'm not sure how the "fact(x)" function made it into the catalog. Either it should come out of the catalog or the function should be implemented. I'm filing a bug for this, and we'll see what I can do about it. -Mike Arrison |