c# - Want to make a function get the result of this Equation? -


I want to create a function to get the result of (t) in this equation

 < Code> T = 1 / ((1- (F / G) ^ 2) * 0.5)   

If text and input form using F and G using C #

Your equation can be kept almost the same in C # just ^ < Switch to / code> (Exponent, Xor in C #) in Math Note, to Math.Pow , and that's it.

  double f = double.Parse (this.textBoxF.Text); Double g = double. Purse (this.textbox.text); Double results = 1 / ((1-monastery. Pow (f / g, 2)) * 0.5)    

Comments