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