expression evaluation and division bt zero ?

Discussion in 'Maple' started by Bernie, Aug 11, 2004.

  1. Bernie

    Bernie Guest

    hi, i don't understand why maple return division by zero in the first case
    and 0 in the second case ?

    first case :
    Convolution2DV3(0,0,k,l);
    1/128)*((1/2*Pi + 1)^2 * sin(Pi*k/2)*sin(Pi*l/2)/k*l


    / 1 \2 Pi k Pi l
    |---- + 1| sin(----) sin(----)
    \2 Pi / 2 2
    1/128 -------------------------------
    k l

    and Convolution2DV3(0,0,0,0);
    Error, (in FPORTE) numeric exception: division by zero

    but second case,
    / 1 \2
    |---- + 1| sin(1/2 Pi k) sin(1/2 Pi l)
    \2 Pi /
    test := (k, l) -> 1/128 ---------------------------------------
    kl
    0

    WHY ???????
    it's the same expression .....

    an explanation will be welcome ....
     
    Bernie, Aug 11, 2004
    #1
    1. Advertisements

  2. Bernie

    G. A. Edgar Guest

    No, it isn't. You left out a *. Try this...
    see the star in the denominator? Now:
    Error, (in test) numeric exception: division by zero
     
    G. A. Edgar, Aug 11, 2004
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.