You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.
“(Easy) Use the Math.pi constant to write a function circleArea which computes the area of a circle with a given radius. Test your function using PSCi (Hint: don’t forget to import pi by modifying the import Math statement).”
In PSCi
> import Math
> Math.pi
Error found:
in module $PSCI
at line 1, column 1 - line 1, column 6
Unknown value Math.pi
@soupi helped me out in the IRC channel explaining that I should change my import to either
> import Math as Math
> Math.pi
3.141592653589793
or
> import Math (pi)
> pi
3.141592653589793
I thought this information might be helpful to people attempting the exercises before the subtleties of import are explained
The text was updated successfully, but these errors were encountered:
Chapter 3, exercise 1
In PSCi
@soupi helped me out in the IRC channel explaining that I should change my import to either
or
I thought this information might be helpful to people attempting the exercises before the subtleties of
import
are explainedThe text was updated successfully, but these errors were encountered: