id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > quiz2021_12_08_HL_maclaurinSin
prev  |  next  |  chance

Let S(x) represent the INFINITE polynomial representation of the Maclaurin Series for f(x)=sin(x), where x is in radians. Write a method that accepts a double 'angle' which represents that angle in radians. You may assume that 'angle' will be a value between plus or minus 10*pi. Return S(angle) rounded to the nearest hundredth place. You ARE allowed to use any of the methods in the Math library.


quiz2021_12_08_HL_maclaurinSin(1.573) → 1.0
quiz2021_12_08_HL_maclaurinSin(2) → 0.91
quiz2021_12_08_HL_maclaurinSin(5) → -0.96

...Save, Compile, Run (ctrl-enter)

public double quiz2021_12_08_HL_maclaurinSin(double angle) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 290

Copyright Nick Parlante 2017 - privacy