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

 

konstans@stuy.edu set1 > sumOfSines
prev  |  next  |  chance

Given an argument t in degrees calculate the sum of sin(2t) and sin(3t). Use Math.sin() to help calculate the result.


sumOfSines(0.523598776) → 1.8660254041861397
sumOfSines(3.14159) → 2.6535897941848526E-6
sumOfSines(1.570795) → -0.9999973464022849

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

public double sumOfSines(double t){ }

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

Copyright Nick Parlante 2017 - privacy