Question

Comment puis-je mettre en œuvre la fonction suivante en C #?

text alt

Était-ce utile?

La solution

double F = 440.0 * Math.Pow(2.0, (n-49.0)/12.0);

Autres conseils

440 * Math.Pow(Math.Pow(2, 1.0/12), n - 49)
440 * 12th root of 2 raised to n-49 
 = 440 * (2 ^ 1/12) ^(n-49)
 = 440 * 2^(n/12) / 2^(49/12)
 = 440 * 2^(n/12) / (2^4 * 2^1/12)
 = 440 * ( 1 / 2^4 ) * 2^((n-1) /12)
 = 8 * 55 * ( 1/16 ) * 2^((n-1) /12)
 = 27.5 * 2^((n-1) /12)

....

double d = 27.5 * Math.Pow(2, (n-1) / 12.0)

Et depuis la racine 12 2 = 1.0594630943592952645618252949463,            puis

double d  = 27.5 * Math.Pow(1.0594630943592952645618252949463, (n-1))

...

 double d = 27.5 * Math.Pow(1.059463094359295, (n-1));

http://www.codeproject.com/script/ articles / ArticleVersion.aspx? aid = 339638 & av = 501750

string funcion= "440*((2)^(1/12))^(X-49)";

X=4
double FX= GetValueFunc(4);
;) jeje
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top