[Numpy-discussion] cos -- NameError: global name 'cos' is not defined
Wayne Watson
sierra_mtnview at sbcglobal.net
Tue Dec 22 00:43:30 EST 2009
Thanks, but I think I've got this under control now, and am moving on.
Robert Kern wrote:
> On Mon, Dec 21, 2009 at 13:44, Wayne Watson
> <sierra_mtnview at sbcglobal.net> wrote:
>
>> Yes, one can get both sin and cos via the interactive shell, if math is
>> imported as you have done.
>> However, I thought math itself always present to a program module?
>>
>
> No.
>
>
>> In
>> my program, sin exists but not cos, so one is forced to use math.cos().
>> Why one but not the other?
>>
>
> Presumably you have imported it somewhere. Please show your program,
> and we may be able to point it out to you.
>
>
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet
"... humans'innate skills with numbers isn't much
better than that of rats and dolphins."
-- Stanislas Dehaene, neurosurgeon
Web Page: <www.speckledwithstars.net/>
More information about the NumPy-Discussion
mailing list