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