Forgive me for not being more clear. I am a super superannuated
engineer. I and (by unwarranted projection) other engineers tend to use
computers, and J in particular, as a superlative calculator. We may have
occasion to evaluate an expression such as my example that results in
0%0 without realizing it. I.e., we do not separately evaluate numerator
and denominator. In such cases, J returns 0, which is the wrong answer,
as demonstrated by application of l'Hospital's rule. J gives no warning
that there is anything pathological in the expression. As a result,
bridges are collapsing, planes are falling from the sky, cell phones are
exploding, and wheels are coming off wagons.
Raul Miller wrote:
To illustrate l'Hospital's rule, you should include a small
epsilon.
N1=:}.@([EMAIL PROTECTED])N=: _64 0 0 1
D1=:}.@([EMAIL PROTECTED])D=: _12 _1 1
((N&p.%D&p.),.N1&p.%D1&p.) 4+1e_9
6.85714 6.85714
If you like, you might go further and try and
implement limit (projecting what the epsilon
would be as epsilon approaches zero), but
the implementation of floating point numbrs
can make this quite challenging.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm