Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Community ▾
A
A
A float is compared with ==. What does this print?… | StemPy Lab
Quizzes
/
A float is compared with ==. What does this print? import numpy as np; print(np.sin(np.radians(30)) == 0.5)
Python Programming
Medium
High School (11–12)
High School (9–10)
Undergraduate
General
Python for Science and Maths › Trigonometry and Waves by Computer
Created by
StemPy Lab
A float is compared with
==
. What does this print?
import numpy as np; print(np.sin(np.radians(30)) == 0.5)
None
False
True
0.5
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← The tangent of three angles, with the huge value hidden. What does this print? import numpy as np; x = np.radians([0, 45, 90]); t = np.tan(x); t[np.abs(t) > 8] = np.nan; print(int(np.isnan(t).sum()), round(float(t[1]), 1))
A rope has points at 0.5, 1, 1.5 and 2.5 m, and a wave of wave number π rad/m is drawn at t = 0. What does this code print? import numpy as np; x = np.array([0.5, 1, 1.5, 2.5]); print(np.round(np.sin(np.pi * x), 2)) →
More on
Python for Science and Maths › Trigonometry and Waves by Computer
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
A fit with curve_fit gives an amplitude of 0.80 m…
Medium
Dev records a 14 Hz hum at 20 readings each second…
Hard
A vibration sensor reads every 0.01 s for 2.0 s, which is 200 readings…
Medium
Two equal waves of amplitude 0.40 m run along a rope…
Easy
All problems on this topic →