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