Status: Not Started
Result World
Objective
Quick Docs
# Graphing an equation
for x in range(100):
y = 2 * x + 5
setposition(x, y)
# Calculate the sine
y = math.sin(x)
# Calculate the cosine
y = math.cos(x)
Font Size
14
Parentheses autocomplete
Wrap lines
Editor
Theme
Code with blocks by default
Console Font Size
12
Console Theme
Show File Tab Bar
5 Making Waves
main.py
1
2
import math
"""
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output
Docs
Exercise
More
History
Video
Download
About
This student is viewing this assignment in English. View this page in English?
5 points
This program graphs a sinusoidal wave.
Your job is to modify the equation so instead of calculating the sine, Tracy calculates the cosine. What changes do you see between the sine graph and the cosine graph?
Hint: To calculate cosine, use math.cos
.
Reset Code
Upload an image
Upload from your computer
Or paste a link here
Slides and Notes
About
Python (turtle)
Skulpt 1.0.0, Python 2.x