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