Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby Ruby Modules Ruby Core Modules Math

Task1 is no longer passing

hmmmm.....I'm really quite confused

when I get to task 3 and assign @sqrt to Math.sqrt, it tells me that task 1 is no longer working. the first assignment I did.

and apparently modules can also have methods are called like class methods or they can have class methods like is sqrt directly inside of the Math module?

math.rb
@pi = Math::PI
@e  = Math::E
sqrt = Math.sqrt

1 Answer

james south
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
james south
Front End Web Development Techdegree Graduate 33,258 Points

you took the @ off the front and haven't supplied the requested argument of 9. add those and it will work. challenges often say an earlier task is no longer passing when you introduce an error in the current task.