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