I'm planning on creating a calculator for physics that would run off of a few equations. But, I realized that it would be a lot of code.

With the equation v = x/t (just one of many I want to include) , there's already three possible equations. 

```
v = x/t     x = vt       t = x/v

```

What I was planning to have the program do is:

-Ask the user what equation they're going to use

-Ask what variable is missing

-Solve for it with a matching equation

My question is whether or not there is a way I can format the code more efficiently. Without knowing how, it seems like running a lot of **very** similar code for each variant of an equation.

I'm planning to create this using multiple classes, if it isn't clear.