### BlueBook

## p84ex5 - Equation

Given the real coefficients a and b (-1000 ≤ a, b ≤ 1000), solve for x in the following equation.

`ax + b = 0`

Be sure to output "indeterminate" and "undefined" whenever appropriate. Remember 0/0 is indeterminate, and something like 4/0 is undefined.

Output the value of x rounded to two decimal places.

### Input

The input cosists of two real numbers, a and b. a and b will be on separate lines, with a first, and b second.

### Output

Output the value of x according to the given values and equation. Be sure to output "indeterminate" and "undefined" whenever appropriate.

### Sample Input 1

10

5

### Sample Output 1

-0.50

### Sample Input 2

13.5555

1.244685

### Sample Output 2

-0.09

### Sample Input 3

0

0

### Sample Output 3

indeterminate

### Sample Input 4

0

4

### Sample Output 4

undefined

All Submissions

Best Solutions

**Point Value:** 3

**Time Limit:** 2.00s

**Memory Limit:** 16M

**Added:** Oct 20, 2008

**Languages Allowed:**

C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

## Comments (Search)

NovaStar987on Feb 14, 2018 - 2:18:10 am UTC IDKjargonon Feb 14, 2018 - 8:10:56 am UTC Re: IDKTheENDon Mar 11, 2016 - 9:51:10 am UTC Why is my code wrongjargonon Mar 11, 2016 - 5:06:22 pm UTC Re: Why is my code wrongmagicalsoupon Feb 14, 2018 - 4:09:12 am UTC Re: Why is my code wrongPEGPro2016on Nov 16, 2017 - 12:49:08 am UTCporso7on Oct 16, 2016 - 6:19:13 am UTC Help with First Testcasespencereiron Oct 16, 2016 - 1:01:40 pm UTC Re: Help with First Testcase2. Don't use roundf, instead use

porso7on Oct 16, 2016 - 3:32:00 pm UTC Re: Help with First Testcase