Python functies

Hoofdmenu Eentje per keer 

Zet de formule om in een een Python functie

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

Zet de formule om in een een Python functie

Verbetersleutel

  1. \(Z=9a+11\\ \begin{align} \textbf{def } &Z(a):\\ & \textbf{return } 9*a+11\end{align}\)
  2. \(D=2ab+6c\\ \begin{align} \textbf{def } &D(a,b,c):\\ & \textbf{return } 2*a*b+6*c\end{align}\)
  3. \(I=3a+2b\\ \begin{align} \textbf{def } &I(a,b):\\ & \textbf{return } 3*a+2*b\end{align}\)
  4. \(T=7pqr+17\\ \begin{align} \textbf{def } &T(p,q,r):\\ & \textbf{return } 7*p*q*r+17\end{align}\)
  5. \(Z=9abc+7\\ \begin{align} \textbf{def } &Z(a,b,c):\\ & \textbf{return } 9*a*b*c+7\end{align}\)
  6. \(I=7pqr+4\\ \begin{align} \textbf{def } &I(p,q,r):\\ & \textbf{return } 7*p*q*r+4\end{align}\)
  7. \(R=5a+12b\\ \begin{align} \textbf{def } &R(a,b):\\ & \textbf{return } 5*a+12*b\end{align}\)
  8. \(I=3a+16b\\ \begin{align} \textbf{def } &I(a,b):\\ & \textbf{return } 3*a+16*b\end{align}\)
  9. \(I=2x+19y+17z\\ \begin{align} \textbf{def } &I(x,y,z):\\ & \textbf{return } 2*x+19*y+17*z\end{align}\)
  10. \(F=7x+15y\\ \begin{align} \textbf{def } &F(x,y):\\ & \textbf{return } 7*x+15*y\end{align}\)
  11. \(D=2a+5\\ \begin{align} \textbf{def } &D(a):\\ & \textbf{return } 2*a+5\end{align}\)
  12. \(D=5a+2\\ \begin{align} \textbf{def } &D(a):\\ & \textbf{return } 5*a+2\end{align}\)
Oefeningengenerator vanhoeckes.be/wiskunde 2024-12-03 18:22:02