Skip to content

Finished implementing all cmath functions #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2015
Merged

Finished implementing all cmath functions #2

merged 1 commit into from
Mar 23, 2015

Conversation

spfrommer
Copy link
Contributor

No description provided.

lefticus added a commit that referenced this pull request Mar 23, 2015
Finished implementing all cmath functions
@lefticus lefticus merged commit fe8f672 into ChaiScript:master Mar 23, 2015
@lefticus
Copy link
Member

Which compiler are you testing on?

@lefticus
Copy link
Member

@spfrommer I ask because I have no problem with the ll functions on clang-3.5

@lefticus
Copy link
Member

I've tested gcc-4.6, clang-3.5, MSVC 2013 (32bit + 64bit) with no problem...

@spfrommer
Copy link
Contributor Author

g++ 4.8.2

It compiles fine (except for a few warnings) but fails at runtime with the following error message for functions that return long long ints:
/home/samuel/repositories/bitbucket/ChaiScript_Extras/tests/math.cpp:71: FAILED:
CHECK( chai.eval("llround(0.5)") == llround(0.5) )
due to unexpected exception with message:
Cannot perform boxed_cast

@spfrommer
Copy link
Contributor Author

It also doesn't seem to like the atanh test:
/home/samuel/repositories/bitbucket/ChaiScript_Extras/tests/math.cpp:34: FAILED:
CHECK( chai.eval("atanh(0.5)") == atanh(0.5) )
with expansion:
0.5493061443 == 0.5493061443

@lefticus
Copy link
Member

32bit / 64bit? Which OS?

@spfrommer
Copy link
Contributor Author

64 bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants