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