Changes between Version 3 and Version 4 of research/trig


Ignore:
Timestamp:
Oct 10, 2011, 1:39:38 AM (9 years ago)
Author:
sam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • research/trig

    v3 v4  
    5454#!cpp
    5555
    56 static real myfun(real const &x)
     56static real myfun(real const &y)
    5757{
    58     real y = sqrt(x);
    59     return (sin(y) - y) / (x * y);
     58    real x = sqrt(y);
     59    return (sin(x) - x) / (x * y);
    6060}
    6161
    62 static real myerr(real const &x)
     62static real myerr(real const &y)
    6363{
    64     return re(x * sqrt(x));
     64    return re(y * sqrt(y));
    6565}
    6666