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