Fix cschden, cothden variations

This commit is contained in:
Steven Robertson 2011-12-07 13:41:45 -05:00
parent 5ce5763da7
commit e79d9a58fd

View File

@ -962,13 +962,13 @@ var(93, 'sech', """
""") """)
var(94, 'csch', """ var(94, 'csch', """
cschden = 2.0f/(coshf(2.0f*tx) - cosf(2.0f*ty)); float cschden = 2.0f/(coshf(2.0f*tx) - cosf(2.0f*ty));
ox += w * cschden * sinhf(tx) * cosf(ty); ox += w * cschden * sinhf(tx) * cosf(ty);
oy -= w * cschden * coshf(tx) * sinf(ty); oy -= w * cschden * coshf(tx) * sinf(ty);
""") """)
var(95, 'coth', """ var(95, 'coth', """
cothden = 1.0f/(coshf(2.0f*tx) - cosf(2.0f*ty)); float cothden = 1.0f/(coshf(2.0f*tx) - cosf(2.0f*ty));
ox += w * cothden * sinhf(2.0f*tx); ox += w * cothden * sinhf(2.0f*tx);
oy += w * cothden * sinf(2.0f*ty); oy += w * cothden * sinf(2.0f*ty);
""") """)