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