Log in

View Full Version : Math functions in EasyC pro


TonyP
03-02-2008, 12:27
Are math and trig functions available in EasyC pro? I am looking to perform an absolute value and a squareroot function.

We could write functions for this and probably will, but it seems to me that these ought to be available in the assignment block.

Thanks

Tony P
" Not going to church this week! ":)

jacobhurwitz
03-02-2008, 13:10
Are math and trig functions available in EasyC pro? I am looking to perform an absolute value and a squareroot function.

We could write functions for this and probably will, but it seems to me that these ought to be available in the assignment block.

Thanks

Tony P
" Not going to church this week! ":)

I'm pretty sure they can be used if you include the proper library. I think it should be #include <math.h>

You could always write your own absolute value function.

paulcd2000
03-02-2008, 14:50
have you checked the tutorials for these functions? they might be included