Drop links or images here to add them to the editor.

Je zag in de les wiskunde onderstaande definitie van een eerstegraadsfunctie.

Definitie

\(f\) is een functie van de eerste graad \(\Leftrightarrow f: x \mapsto ax+b \qquad(a\in \mathbb{R}_0, b\in \mathbb{R})\)

Opgave

Schrijf een functie f( x ) die onderstaande eerstegraadsfunctie \(f\) implementeert.

\[f: x\mapsto 3x - 4\]

De functie f( x ) geeft telkens het beeld. Rond af op 2 cijfers.

Voorbeelden

>>> f( 0 )
-4
>>> f( 4/3 )
0.0