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