Finding all possible solution pairs to an algebra problem with constraints in python

I am trying to use python to create list of all pairs of numbers between 2 and 75 that average to 54, where each value in each solution pair can go up to 6 decimal places. And so I want to have a list of all of these solution pairs. I have tried using solve()… Read More Finding all possible solution pairs to an algebra problem with constraints in python

Having trouble inverting a simple math equation using logarithms in Python

After trying to reverse a very simple math formula for the past day, I’ve given up after bumping my head against scipy.special.lambertw — which might not even be the correct place to be looking. I have the following equation: import numpy # The following == 70.03 np.sqrt(np.log(742) * 742) I’m trying to invert that equation… Read More Having trouble inverting a simple math equation using logarithms in Python