## WeBWorK Problems

### Re: Passing a root into a fraction

by Gregory Varner -
Number of replies: 0

I figured this out so I thought I would update. It was much easier than I was thinking.

I used the following snippet:

Context("Numeric");

$ans1 = Formula("(-$b+sqrt(s))/(2*$a)")->reduce;$ans1 = $ans1->substitute(s=>$discr);