r"""Nested Expression: \sqrt{(x-a)^2 + (y-b)^2 + (z-c)^2}
(x, y, z, a, b, c)
| 51 | |
| 52 | import numpy as np |
| 53 | def nested_expression(x, y, z, a, b, c): |
| 54 | r"""Nested Expression: \sqrt{(x-a)^2 + (y-b)^2 + (z-c)^2}""" |
| 55 | return np.sqrt((-a + x) ** 2 + (-b + y) ** 2 + (-c + z) ** 2) |
| 56 | |
| 57 | |
| 58 | import numpy as np |