Question
R code line from the abc formula, to calculate the roots of the quadratic equation , for various values a, b, c. Abc formula: Translate
R code line from the abc formula, to calculate the roots of the quadratic equation , for various values a, b, c. Abc formula:
Translate the formula or its components into the R language. Because there are two values produced, x1 and x2, the variables x1 and x2 must be combined through the cbind command (x1, x2) if grouped into row vectors or rbind (x1, x2) if grouped be a column vector. This vector also becomes the returned result. After the function is successfully created, evaluate it for the value: i. a = 1, b = 5, c = 6 ii.a = 1, b = 0, c = 4
Using R language to solve it and explain please, Thanks
f (r) = ax? + bx + c = 0 -b+ V2 4ac 212 = 2aStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started