Private Sub Command2_Click() Dim x As Long dblpi = 3.14159265358979 x = Text2.TextText3 Text3 (Atn(-x / Sqr((-x * x + 1))) + 2 * Atn(1)) * (180 / dblpi) End Sub
Dim x as longpar
Dim x as doublej obtiens division par zero.
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question> Private Sub Command2_Click() > Dim x As Long > dblpi = 3.14159265358979 > x = Text2.Text> Text3 Text3 (Atn(-x / Sqr((-x * x + 1))) + 2 * Atn(1)) * (180 / dblpi) > End Sub >
Dim x as longpar
Dim x as doublej obtiens type imcopatible.
> > > > dblpi = 3.14159265358979 > > > > x = 0.707106781186548 > > > > Text3 = Atn(-x / Sqr(-x * x + 1)) + 2 * Atn(1) * (180 / dblpi) > > > >
const pi=3.14159265358979 Function ArcCos(ByVal X As Double) As Double If X = 1 Then ArcCos = 0 ElseIf X = -1 Then ArcCos = -PI Else ArcCos = (Atn(-X / Sqr((-X * X + 1))) + 2 * Atn(1)) * (180 / PI) End If End Function