From e79d9a58fd43b2461a75e42015e3da2d7d390dbc Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Wed, 7 Dec 2011 13:41:45 -0500 Subject: [PATCH] Fix cschden, cothden variations --- cuburn/code/variations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cuburn/code/variations.py b/cuburn/code/variations.py index c7d3931..4daf302 100644 --- a/cuburn/code/variations.py +++ b/cuburn/code/variations.py @@ -962,13 +962,13 @@ var(93, 'sech', """ """) 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); oy -= w * cschden * coshf(tx) * sinf(ty); """) 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); oy += w * cothden * sinf(2.0f*ty); """)