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

 

quadForm


Create quadForm(int a,int b,int c) that will return the larger solution to the quadratic


quadForm(1, 0, -1) → 1.0
quadForm(1, -3, 2) → 2.0
quadForm(2, 0, -1) → 0.7071067811865476

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

public double quadForm(int a, int b, int c) { }

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