I find its easier to do it the way I posted.
theres not as many variables to keep track of.
and its easier to do an initial build of a equation
one line at a time.
but sure you could do the equation like this.
dim v=5:c=100:t=1:t1=0:v1=0:v2=0
v1 = 1-(v*v)/(c*c):v2 = sqrt(v1):t1 = t * v2
or something like that I just dont do it that way
Id rather do 1 calculation on 1 line
it makes stepping through the calculations easier
and less confusing when you are dealing with hundreds of variables.
and unlike the above I would name the variables so that they
are more recognizable to me ... like the speed of light c would be sol and the speed of light C would be SOL
v1_m1
v1_m2
v1_m3
etc... having easier to find variables makes finding errors
in equation building much easier.
and I try to reuse the same variable as I go along in the calculations then I simply give the named variable the value of the variable that I used to work the equation.
also this way you dont have too many variables storing
unnecessary data.
and I try to never have duplicate equations if possible
by sending values of variables to a routine that handles
that specific equation.
as in
100 if a >= 100 then a = 0
101 if add_10=1 then goto 600
102 if a < 101 then goto 500
103 goto 100
500 a=a+1:add_10=1:goto 100
600 a=a+10:add_10=0:goto 100
the above loop will never stop.
it will add 1 to a
then it will add 10 to a
then 1
then 10
etc...etc...etc...
this way you can set up multiple routines
in the same loop.
if you dont already program you should try it
I think you would like it.
and its free.
visual studio express.
https://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx