Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

tangens

Empfohlene Antworten

Veröffentlicht

hallo,

weiß jemand warum mein php bei

echo tan(30);

-6.4053311966463

anstelle des eigentlichen tangens von 30

0,57735....
ausgibt?

danke

lg

jasso

Sieht irgentwie so aus als ob einmal mit Winkel und einmal mit Bogenmass gerechnet wurde

Guck mal hier

Absatz: Taschenrechner und Computer

 $bogenmass=((30*pi())/180);
echo $bogenmass;
$tangens=tan($bogenmass);
echo"<br>";
echo $tangens;[/PHP]

probiers mal so ;)

  • Autor
 $bogenmass=((30*pi())/180);
echo $bogenmass;
$tangens=tan($bogenmass);
echo"<br>";
echo $tangens;[/PHP]

probiers mal so ;)

:uli

und danke jetzt funktionierts.

lg

jasso

Die Funktion ist aber leich kaputt, soweit ich weiss kommt bei 90° oder 180° fehlerhafte Ergebnisse raus...

mfg

Die Funktion ist aber leich kaputt, soweit ich weiss kommt bei 90° oder 180° fehlerhafte Ergebnisse raus...

mfg

hallo?

kaputt?

der Tangents hat bei 90° eben seine Def Lücke, da gibts keinen wert, nur den Grenzwert wenn der Winkel gegen 90° geht, und der ist unendlich, für winkel->90 von kleineren werten

aber tan 180 sollte funktionieren und 0 sein

Eben, sinus und cosinus haben z.b. keine Def Lücken, deshalb bekommst du auch "überall" Werte.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.