Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Don't know how strange it feels
can i edit the mathematical functions defined in math.h?
I mean the definition of the function.

for example if pow(x,y) gives x^y, then i want to change it to x*y.
How do i do this?
Posted

1 solution

Is it to fool the enemy, isn't it?

However, if you have the source file of the C runtime libraries then you can (you can, but please, don't do it): you must edit the source code of the, for instance, pow function implementation.

Another approach would be writing your own library for such 'customized' math functions and use it instead of the standard one.
 
Share this answer
 
Comments
Pramod Harithsa 27-Jan-12 7:30am    
Thanks a lot,!
yup its for fooling the enemy ;-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900