User Tools

Site Tools


nl:tan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

nl:tan [2016/01/01 22:47]
nl:tan [2020/02/28 10:46] (current)
Line 1: Line 1:
 +===== Tan =====
 +==== Formaat ====
 +**tan** ( //uitdrukking// )
 +==== Beschrijving ====
 +Dit is een wiskundige formule, meer bepaald uit de [[http://nl.wikipedia.org/wiki/Goniometrie|Goniometrie]]\\ 
 +
 +De functie berekent de tangens van //uitdrukking// De hoek moet in radianen worden meegegeven (0 tot 2pi).\\ 
 +
 +Meer informatie over deze functie vind je op de wiki : [[http://nl.wikipedia.org/wiki/Tangens|tan]]
 +==== Voorbeeld ====
 +++++Hierna de code|
 +<code basic4gl>
 +clg
 +color black
 +#tekent een horizontale as
 +line 0,150,300,150
 +# waar beginnen we
 +color blue
 +lastx = 0
 +lasty = tan(0) * 50 + 150
 +# go over de lijn en teken de grafiek
 +for x = 0 to 300 step 5
 +   angle = x / 300 * 2 * pi
 +   y = tan(angle) * 50 + 150
 +   line lastx, lasty, x, y
 +   lastx = x
 +   lasty = y
 +next x
 +</code>
 +++++
 +++++geeft dan|
 +{{:nl:tang.png|}}
 +++++
 +
 +==== Zie ook ====
 +[[acos|Acos]], [[asin|Asin]], [[atan|Atan]], [[cos|Cos]], [[degrees|Degrees]], [[radians|Radians]], [[sin|Sin]]
 +
 +----
 +[[sqr|vorige]] | [[mathematical|Wiskundige Functies]]