Python functies

Hoofdmenu Eentje per keer 

Zet de formule om in een een Python functie

  1. \(R=10a+13b\)
  2. \(I=3x-10y+11\)
  3. \(R=7x+15y+19z\)
  4. \(R=3x+8y+5z\)
  5. \(I=8p+9q\)
  6. \(D=4x+3y\)
  7. \(R=5a+8b\)
  8. \(R=8x-19y+20\)
  9. \(D=4ab+2c\)
  10. \(I=2a-5b+3\)
  11. \(T=4abc+19\)
  12. \(F=3p+17q\)

Zet de formule om in een een Python functie

Verbetersleutel

  1. \(R=10a+13b\\ \begin{align} \textbf{def } &R(a,b):\\ & \textbf{return } 10*a+13*b\end{align}\)
  2. \(I=3x-10y+11\\ \begin{align} \textbf{def } &I(x,y):\\ & \textbf{return } 3*x-10*y+11\end{align}\)
  3. \(R=7x+15y+19z\\ \begin{align} \textbf{def } &R(x,y,z):\\ & \textbf{return } 7*x+15*y+19*z\end{align}\)
  4. \(R=3x+8y+5z\\ \begin{align} \textbf{def } &R(x,y,z):\\ & \textbf{return } 3*x+8*y+5*z\end{align}\)
  5. \(I=8p+9q\\ \begin{align} \textbf{def } &I(p,q):\\ & \textbf{return } 8*p+9*q\end{align}\)
  6. \(D=4x+3y\\ \begin{align} \textbf{def } &D(x,y):\\ & \textbf{return } 4*x+3*y\end{align}\)
  7. \(R=5a+8b\\ \begin{align} \textbf{def } &R(a,b):\\ & \textbf{return } 5*a+8*b\end{align}\)
  8. \(R=8x-19y+20\\ \begin{align} \textbf{def } &R(x,y):\\ & \textbf{return } 8*x-19*y+20\end{align}\)
  9. \(D=4ab+2c\\ \begin{align} \textbf{def } &D(a,b,c):\\ & \textbf{return } 4*a*b+2*c\end{align}\)
  10. \(I=2a-5b+3\\ \begin{align} \textbf{def } &I(a,b):\\ & \textbf{return } 2*a-5*b+3\end{align}\)
  11. \(T=4abc+19\\ \begin{align} \textbf{def } &T(a,b,c):\\ & \textbf{return } 4*a*b*c+19\end{align}\)
  12. \(F=3p+17q\\ \begin{align} \textbf{def } &F(p,q):\\ & \textbf{return } 3*p+17*q\end{align}\)
Oefeningengenerator vanhoeckes.be/wiskunde 2025-04-03 05:12:34