Math 172 - IN1 Course Folder-collect / Project 3 - Trig part 2 / adf15362-768d-43ea-88e9-1a19f3e4f901 / Step 2 - Your page to turn in!.sagews
4218 viewsYour turn!
Follow the link http://mathbits.com/MathBits/TISection/Statistics2/sinusoidal.htmlto find data for the two other cities. Type in the data and create separate scatter plots. Then find the sinusoidal model for each.
Plot the function: f(x)=sin(2x-π)-2, g(x)=-3sec(πx); h(x)=tan(x-π/2) in a single graphing window from [-2π,2π]. Use different colors for each graph!
22.750416372761766*sin(0.4941622527603166*x + 4.33616519835939) + 65.36784858935329
Error in lines 1-1
Traceback (most recent call last):
File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1013, in execute
exec compile(block+'\n', '', 'single') in namespace, locals
File "", line 1, in <module>
File "sage/misc/lazy_import.pyx", line 354, in sage.misc.lazy_import.LazyImport.__call__ (/ext/sage/sage-8.0/src/build/cythonized/sage/misc/lazy_import.c:3559)
return self.get_object()(*args, **kwds)
File "/ext/sage/sage-8.0/local/lib/python2.7/site-packages/sage/numerical/optimize.py", line 685, in find_fit
raise ValueError("no variables given")
ValueError: no variables given
17.75774360770287*sin(0.5034536935229376*x - 2.004686232497934) + 79.14960706079732
*** WARNING: Code contains non-ascii characters ***
*** WARNING: Code contains possible implicit multiplication ***
*** Check if [u'2x', u'3sec('] need a "*" sign for multiplication, e.g. < 5x > should be < 5*x > ! ***
Error in lines 1-1
Traceback (most recent call last):
File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1013, in execute
exec compile(block+'\n', '', 'single') in namespace, locals
File "<string>", line 1
plot(x * sin(x), (x, -Integer(2), Integer(10)))f(x)=sin(2x-π)-Integer(2), g(x)=-3sec(πx); __tmp__=var("x"); h = symbolic_expression(tan(x-π/Integer(2))).function(x)
^
SyntaxError: invalid syntax