Difficulties in transferring formulas in Ruby.
Posted: Sun Jul 28, 2013 5:00 pm
Friends, who can be able to help with the mathematical part of the plugin. I need to write formulry in Ruby, but lack the knowledge to convert formulas from mathematics to code for Ruby. If anyone can help I would appreciate.
0.5 COSINE (2π t - 0 π ) = 0.5 COS (2π t ) + 0 SIN (2π t )
http://www.fourier-series.com/fourierse ... index.html
I have the values 0.5 COSINE (2π t - 0 <----This value π ) value comes from the button.
How do I get the value for the second part of the formula?
And as it is written in the Ruby?
0.5 COSINE (2π t - 0 π ) = 0.5 COS (2π t ) + 0 SIN (2π t )
http://www.fourier-series.com/fourierse ... index.html
I have the values 0.5 COSINE (2π t - 0 <----This value π ) value comes from the button.
How do I get the value for the second part of the formula?
And as it is written in the Ruby?