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