Post Reply 
10E500?
12-11-2014, 06:55 AM
Post: #7
RE: 10E500?
(12-10-2014 05:35 PM)Snorre Wrote:  
(12-09-2014 08:21 PM)mpowell@rogershsa.com Wrote:  Hi. I tried it but got a syntax error.
Hi,
it didn't work because it was just a CAS-function, not a program.
A program might look like
Code:
EXPORT BIGFAC(n)
BEGIN
  LOCAL s:=0,k;
  FOR k FROM 2 TO n DO s:=s+LOG(k); END;
  ALOG(FP(s))+"ᴇ"+IP(s);
END;
Note: this is meant just as an example how to deal with big floats for a particular problem (faculty in this case). It returns a string which cannot be used for further calculations.
You may program a big float math library by representing them as [mantissa, exponent] vectors and (re)defining some basic operators (+, -, *, /, !, ...). But that may not work very well for operators where mantissas and exponents cannot treated separately.
On the other side: such big numbers occur mostly in combinatorial problems which often require not more than a few basic operators.

Cool, thanks. Got it to work.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
10E500? - mpowell@rogershsa.com - 12-08-2014, 12:30 AM
RE: 10E500? - Snorre - 12-08-2014, 08:28 AM
RE: 10E500? - mpowell@rogershsa.com - 12-09-2014, 02:39 AM
RE: 10E500? - Gerald H - 12-09-2014, 12:52 PM
RE: 10E500? - mpowell@rogershsa.com - 12-09-2014, 08:21 PM
RE: 10E500? - Snorre - 12-10-2014, 05:35 PM
RE: 10E500? - mpowell@rogershsa.com - 12-11-2014 06:55 AM
RE: 10E500? - cyrille de brébisson - 12-12-2014, 07:07 AM
RE: 10E500? - lenborje - 01-27-2015, 04:00 PM
RE: 10E500? - debrouxl - 12-12-2014, 08:58 AM
RE: 10E500? - cyrille de brébisson - 01-28-2015, 10:06 AM
RE: 10E500? - Paul Dale - 01-28-2015, 10:38 AM



User(s) browsing this thread: 1 Guest(s)