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