How to calculate square root

sqrt =

x= -b + SQRT (b^2 - 4 ac /2*a )

main → processing

Hi @priyanka_pandey1

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


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.



This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.