Python functies

Hoofdmenu Eentje per keer 

Zet de formule om in een een Python functie

  1. \(D=6a+17b\)
  2. \(D=3x-10y+17\)
  3. \(I=2a+5b+16c\)
  4. \(R=10x-13y+17\)
  5. \(R=9abc+4\)
  6. \(Z=2x+11y+7z\)
  7. \(I=5x+14\)
  8. \(R=8a+7b+17c\)
  9. \(F=2a+13b\)
  10. \(Z=10p+11\)
  11. \(R=9a+13b\)
  12. \(R=5x+17y+13z\)

Zet de formule om in een een Python functie

Verbetersleutel

  1. \(D=6a+17b\\ \begin{align} \textbf{def } &D(a,b):\\ & \textbf{return } 6*a+17*b\end{align}\)
  2. \(D=3x-10y+17\\ \begin{align} \textbf{def } &D(x,y):\\ & \textbf{return } 3*x-10*y+17\end{align}\)
  3. \(I=2a+5b+16c\\ \begin{align} \textbf{def } &I(a,b,c):\\ & \textbf{return } 2*a+5*b+16*c\end{align}\)
  4. \(R=10x-13y+17\\ \begin{align} \textbf{def } &R(x,y):\\ & \textbf{return } 10*x-13*y+17\end{align}\)
  5. \(R=9abc+4\\ \begin{align} \textbf{def } &R(a,b,c):\\ & \textbf{return } 9*a*b*c+4\end{align}\)
  6. \(Z=2x+11y+7z\\ \begin{align} \textbf{def } &Z(x,y,z):\\ & \textbf{return } 2*x+11*y+7*z\end{align}\)
  7. \(I=5x+14\\ \begin{align} \textbf{def } &I(x):\\ & \textbf{return } 5*x+14\end{align}\)
  8. \(R=8a+7b+17c\\ \begin{align} \textbf{def } &R(a,b,c):\\ & \textbf{return } 8*a+7*b+17*c\end{align}\)
  9. \(F=2a+13b\\ \begin{align} \textbf{def } &F(a,b):\\ & \textbf{return } 2*a+13*b\end{align}\)
  10. \(Z=10p+11\\ \begin{align} \textbf{def } &Z(p):\\ & \textbf{return } 10*p+11\end{align}\)
  11. \(R=9a+13b\\ \begin{align} \textbf{def } &R(a,b):\\ & \textbf{return } 9*a+13*b\end{align}\)
  12. \(R=5x+17y+13z\\ \begin{align} \textbf{def } &R(x,y,z):\\ & \textbf{return } 5*x+17*y+13*z\end{align}\)
Oefeningengenerator wiskundeoefeningen.be 2024-11-21 16:55:08
Een site van Busleyden Atheneum Mechelen