<script src="https://cdn.jsdelivr.net/npm/nerdamer@latest/nerdamer.core.js"></script>
<script src="https://cdn.jsdelivr.net/npm/nerdamer@latest/Algebra.js"></script>
<script src="https://cdn.jsdelivr.net/npm/nerdamer@latest/Calculus.js"></script>
<script src="https://cdn.jsdelivr.net/npm/nerdamer@latest/Solve.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/index.min.js"></script>
[
//perceptron
'r1=b+(m1*x11)+(m2*x12)',
'r2=b+(m1*x21)+(m2*x22)',
'r3=b+(m1*x31)+(m2*x32)',
//entrenamiento
'r1=0',
'x11=0',
'x12=0',
'r2=0',
'x21=1',
'x22=0',
'r3=0',
'x31=0',
'x32=1',
//soluciones
'r4=b+(m1*x41)+(m2*x42)',
'x41=0',
'x42=0',
'r5=b+(m1*x51)+(m2*x52)',
'x51=1',
'x52=0',
'r6=b+(m1*x61)+(m2*x62)',
'x61=0',
'x62=1',
'r7=b+(m1*x71)+(m2*x72)',
'x71=1',
'x72=1',
]