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

 

amgreyson@gmail.com algebra-1 > hasInfinitelyManySolutions
prev  |  next  |  chance

Given the slopes and y-intercepts for two equations in a system, return True if the system has infinitely many solutions, otherwise return False. The equations are guaranteed not to represent vertical or horizontal lines.


hasInfinitelyManySolutions(2, 5, -2, 5) → False
hasInfinitelyManySolutions(2, 5, 2, 5) → True
hasInfinitelyManySolutions(0.375, 4, 0.375, -2) → False

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

def hasInfinitelyManySolutions(m1, b1, m2, b2):

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

Python Help

Difficulty: 175

Copyright Nick Parlante 2017 - privacy