Equation Solver 3

A challenge by lukegustafson avatar lukegustafson

Description

I need some code to do my homework for me. Each equation can be simplified to a linear one. Print out the value of x satisfying the equation.

Each equation will be on a separate line.

My teacher allows a tolerance of 1e-4 because she knows how hard it can be to do correct rounding in base 10 when your floating-point numbers are internally represented in base 2.

Leaderboard

Author Score
#1 Bulmenisaurus avatar Bulmenisaurus 71
#1 MichalMarsalek avatar MichalMarsalek 71
#3 4atj avatar 4atj 72
#3 lukegustafson avatar lukegustafson 72
#5 cros107 avatar cros107 77
#5 ovs-code avatar ovs-code 77
#7 AlephSquirrel avatar AlephSquirrel 80
#7 ndren avatar ndren 80
You must be logged in to submit a solution.