Problema 1

print(polyroot(c(0.5,-1.5,1)))
## [1] 0.5+0i 1.0-0i

print(polyroot(c(0.25,-0.25,-1,1)))
## [1]  0.5-0i -0.5+0i  1.0+0i
library(matlib)
A <- matrix(c(1,1,1,0.5,-0.5,1,0.25,0.25,1),
            3,3, byrow = TRUE)
b <- c(1,1,1.25)
showEqn(A,b)
##    1*x1    + 1*x2 + 1*x3  =     1 
##  0.5*x1  - 0.5*x2 + 1*x3  =     1 
## 0.25*x1 + 0.25*x2 + 1*x3  =  1.25
Solve(A, b, fractions = TRUE)
## x1      =  -1/2 
##   x2    =   1/6 
##     x3  =   4/3

Problema 2

_______

Problema 3

_______

LS0tCnRpdGxlOiAiVGFyZWEgMyIKYXV0aG9yOiAiUmFmYWVsIE1hcnTDrW5leiBNYXJ0w61uZXoiCm91dHB1dDogCiAgaHRtbF9kb2N1bWVudDoKICAgIHRvYzogdHJ1ZQogICAgdG9jX2Zsb2F0OiB0cnVlCiAgICAjbnVtYmVyX3NlY3Rpb25zOiB0cnVlCiAgICBjb2RlX2Rvd25sb2FkOiB0cnVlCiAgICBjb2RlX2ZvbGRpbmc6IHNob3cKLS0tCgpgYGB7ciBzZXR1cCwgaW5jbHVkZT1GQUxTRX0Ka25pdHI6Om9wdHNfY2h1bmskc2V0KGVjaG8gPSBUUlVFLCBtZXNzYWdlID0gRkFMU0UsIHdhcm5pbmcgPSBGQUxTRSkKYGBgCgojIFByb2JsZW1hIDEKCmBgYHtyIHByb2JsZW1hMWF9CnByaW50KHBvbHlyb290KGMoMC41LC0xLjUsMSkpKQoKYGBgCgoKCiFbXShJbWFnZW5lcy9UMnAxXzEuanBlZykKCgpgYGB7ciBwcm9ibGVtYTFifQpwcmludChwb2x5cm9vdChjKDAuMjUsLTAuMjUsLTEsMSkpKQpsaWJyYXJ5KG1hdGxpYikKQSA8LSBtYXRyaXgoYygxLDEsMSwwLjUsLTAuNSwxLDAuMjUsMC4yNSwxKSwKICAgICAgICAgICAgMywzLCBieXJvdyA9IF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