a,b,c
sqrt =
x= -b + SQRT (b^2 - 4 ac /2*a )
main → processing
a,b,c
sqrt =
x= -b + SQRT (b^2 - 4 ac /2*a )
main → processing
just create x variable from type Double and write this statement in the Assign activity.
(-b +(Math.Sqrt((bb) -((4ac) / (2a)))))
Please see the attached process.
Please let me know if it works for you.
SQUR.xaml (5.5 KB)
Best regards
Mahmoud
Hi,
BTW, Is the above expression intended to be a formula for solving a quadratic equation?
If so, it should be the following, FYI.
x= (-b + SQRT (b^2 - 4 *a* c))/(2*a)
And expression in UiPath will be the following.
(-1*b+Math.Sqrt(b*b-4*a*c))/(2*a)
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.