I'm trying to show on screen how much dv a deltaglider has left with it's current fuel.
The formula is: Dv=ln(mo/m1)*(excaust velocity)
where m0= drymass
where m1= drymass+fuelmass
In the case of the DG the drymass is 11000 and the excaust-v is 40000
I already have the drymass and the drymass+fuelmass in the script.
How can i input, in Lua, the formula for the Dv above, in order to show the remaing Dv the spacecraft has?
Thank you in advance

The formula is: Dv=ln(mo/m1)*(excaust velocity)
where m0= drymass
where m1= drymass+fuelmass
In the case of the DG the drymass is 11000 and the excaust-v is 40000
I already have the drymass and the drymass+fuelmass in the script.
How can i input, in Lua, the formula for the Dv above, in order to show the remaing Dv the spacecraft has?
Thank you in advance
