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