Mathematische Formel in c# umwandeln [Duplikat]C#

Ein Treffpunkt für C#-Programmierer
Anonymous
 Mathematische Formel in c# umwandeln [Duplikat]

Post by Anonymous »

Ich versuche, die folgende Formel in C# zu konvertieren:

Code: Select all

Tw = T × arctan[0.151977 × (RH% + 8.313659)^(1/2)] + arctan(T + RH%) - arctan(RH% - 1.676331) + 0.00391838 ×(RH%)^(3/2) × arctan(0.023101 × RH%) - 4.686035
Das habe ich bisher:

Code: Select all

double temp = 25;
double rh = 40;

var Tw = (temp * Math.Atan(0.151977 * (rh + 8.313659)) + Math.Atan(temp + rh) - Math.Atan(rh - 1.676331) + 0.00391838 * rh) ^ 3 / 2 * Math.Atan(0.023101 * rh) - 4.686035;
Ich erhalte ständig die Fehlermeldung:

^ kann nicht auf double und int angewendet werden.

Jede Hilfe wäre dankbar

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post