Python Forum
Solve simple equation in Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solve simple equation in Python
#3
Or use basic algebra to solve for x then print the result

0.4x - 0.38 = 0.58
0.4x = 0.58 + 0.38 = 0.96
x = 0.96/0.4

print(0.96/0.4)
Output:
2.4
Reply


Messages In This Thread
Solve simple equation in Python - by kmll - Nov-01-2020, 03:32 PM
RE: Solve simple equation in Python - by deanhystad - Nov-01-2020, 03:43 PM
RE: Solve simple equation in Python - by kmll - Nov-01-2020, 04:11 PM
RE: Solve simple equation in Python - by jefsummers - Nov-01-2020, 03:57 PM
RE: Solve simple equation in Python - by deanhystad - Nov-01-2020, 04:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  A simple problem, how best to solve it? SuchUmami 2 1,490 Sep-01-2023, 05:36 AM
Last Post: Pedroski55
  How to solve this simple problem? Check if cvs first element is the same in each row? thesquid 2 2,060 Jun-14-2022, 08:35 PM
Last Post: thesquid
  Python selenium + Xevil to solve recaptcha sunny9495 6 6,292 Apr-04-2022, 10:23 AM
Last Post: sunny9495
Heart how to solve complex equations in python HoangF 3 4,031 Dec-26-2021, 07:04 PM
Last Post: HoangF
  NotImplementedError: pseudo-class is not implemented - how to Update Python to solve apollo 1 4,074 May-16-2021, 08:03 AM
Last Post: buran
  Python gives " -0.0 " as solution for an equation akar 2 2,817 Aug-27-2020, 12:15 PM
Last Post: akar
  Asking for help in solving a single variable nonlinear equation using Python ! NDP 0 2,470 Feb-15-2019, 12:03 PM
Last Post: NDP
  How do I code this equation in python (factor ceiling(2^127-1)) Pleiades 5 5,928 Apr-23-2018, 03:01 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020