Is there a typo in your description?
g(x,y) is not defined.  Do you mean g(n+1)=f(n,n-1)?



----- Original Message -----
From: John Randall <[EMAIL PROTECTED]>
Date: Friday, December 8, 2006 9:56 am
Subject: Re: [Jgeneral] exp(y). sin(y) and accuracy.

> While we are talking about numerical precision, here is a simple
> example which illustrates some pitfalls of floating-point arithmetic.
> There are no transcendental functions here, just - and % .
> 
> Let f(x,y)=108-(815-1500%y)%x and let g(n+1)=g(n,n-1), with g(0)=4,
> g(1)=4.25.
> 
> Then g(n)->L as n goes to infinity.  The question is, what is L?  Or
> even what is g(80)?  [Hint: neither of these is 100.]


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to