11. Feeling included


you can simply write PI instead of Math::PI."
So I wrote COS instead of Math::cos but It doesn’t work ???

Include ALL error messages:
undefined local variable or method `cos’ for Context::Angle:Class



Where you have written COS (line 2) you should have written, include Math.

The demonstration is in the definition of the cos function. Instead of Math::cos, we write simply, cos.


Thanks a lot Mtf !
I didn’t thought it was so simple .


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.