How to fix Large integer division problem in python
Lets say a= 34356466678672179216206944866734405838331831190171667647615530531663699592602
and b = 13499050790744142958256114571633334747886685252235001176113544924025382078422 and z = a*b but when i did z/a instead of giving me b it gave me something close to it 13499050790744143364768757356774188697457460003136632727580144822474986487808 why is that and how do i fix it in python
Failing at maths
So let say i have this real number a,b,n and z and lets say z is gotten from ab-n so now i want to find b assuming i didn’t know it so i Change the formula to ab-n-z =0 so all i have to do here is to make b the subject of the formula which means to find b we do n+z/a but so instead of printing out the variables and checking if there were correct myself i did print(result==b) and it gave false and decided to print the value and i saw that was different from b so i wondered and wondered and still couldn’t see my error this is just simple maths so why didn’t it work any suggestions please
Is it possible to solve such an equation system in Python?
I am trying to rewrite several systems of equations in python, but I have little (very little) experience. I wrote something, but I don’t understand if it’s correct.
Can anyone help?