      Van / facebook.com/LearningCalculus
      L'Hopitals rule: Preamble

      Test these statements by removing '$' characters.

kill(all)$ minf$
OR(a,b) := a or b$ AND(a,b) := a and b$
isLimitMinf(L) := is(equal(L,minf))$ isLimitMinf(minf)$isLimitMinf(0)$isLimitMinf(inf)$
isLimitSifr(L) := is(equal(L,0))$ isLimitSifr(minf)$isLimitSifr(0)$isLimitSifr(inf)$
isLimitInf(L) := is(equal(L,inf))$ isLimitInf(minf)$isLimitInf(0)$isLimitInf(inf)$
isLimitMinfOrSifrOrInf(L):=is(OR(OR(isLimitMinf(L),isLimitSifr(L)),isLimitInf(L)))$
isLHopitalApplicable(L):= isLimitMinfOrSifrOrInf(L)$

f(x):= ((1+109*x)^(1/7)*(1+1453*x)^(1/35)-1)$
g(x):= ((1+3*x)^(1/35)-1)$
h(x):= f(x)/g(x)$ h(x)$

is(equal(f(0),0) and equal(g(0),0));

      L'Hopitals rule may be only used if BOTH conditions are true:

A:isLHopitalApplicable(limit(f(x),x,0))$
B:isLHopitalApplicable(limit(g(x),x,0))$
is(A) and is(B);

a:limit(diff(f(x),x),x,0);
b:limit(diff(g(x),x),x,0);
a/b;