Zet de formule om in een een Python functie
- \(Z=9a+11\)
- \(D=2ab+6c\)
- \(I=3a+2b\)
- \(T=7pqr+17\)
- \(Z=9abc+7\)
- \(I=7pqr+4\)
- \(R=5a+12b\)
- \(I=3a+16b\)
- \(I=2x+19y+17z\)
- \(F=7x+15y\)
- \(D=2a+5\)
- \(D=5a+2\)
Zet de formule om in een een Python functie
Verbetersleutel
- \(Z=9a+11\\ \begin{align} \textbf{def } &Z(a):\\ & \textbf{return } 9*a+11\end{align}\)
- \(D=2ab+6c\\ \begin{align} \textbf{def } &D(a,b,c):\\ & \textbf{return } 2*a*b+6*c\end{align}\)
- \(I=3a+2b\\ \begin{align} \textbf{def } &I(a,b):\\ & \textbf{return } 3*a+2*b\end{align}\)
- \(T=7pqr+17\\ \begin{align} \textbf{def } &T(p,q,r):\\ & \textbf{return } 7*p*q*r+17\end{align}\)
- \(Z=9abc+7\\ \begin{align} \textbf{def } &Z(a,b,c):\\ & \textbf{return } 9*a*b*c+7\end{align}\)
- \(I=7pqr+4\\ \begin{align} \textbf{def } &I(p,q,r):\\ & \textbf{return } 7*p*q*r+4\end{align}\)
- \(R=5a+12b\\ \begin{align} \textbf{def } &R(a,b):\\ & \textbf{return } 5*a+12*b\end{align}\)
- \(I=3a+16b\\ \begin{align} \textbf{def } &I(a,b):\\ & \textbf{return } 3*a+16*b\end{align}\)
- \(I=2x+19y+17z\\ \begin{align} \textbf{def } &I(x,y,z):\\ & \textbf{return } 2*x+19*y+17*z\end{align}\)
- \(F=7x+15y\\ \begin{align} \textbf{def } &F(x,y):\\ & \textbf{return } 7*x+15*y\end{align}\)
- \(D=2a+5\\ \begin{align} \textbf{def } &D(a):\\ & \textbf{return } 2*a+5\end{align}\)
- \(D=5a+2\\ \begin{align} \textbf{def } &D(a):\\ & \textbf{return } 5*a+2\end{align}\)