11. Feeling included


#1


Instruction:
you can simply write PI instead of Math::PI."
So I wrote COS instead of Math::cos but It doesn’t work ???
https://www.codecademy.com/courses/learn-ruby/lessons/object-oriented-programming-ii/exercises/feeling-included?action=lesson_resume

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



COS



#2

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.


#3

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


#4

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