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