|
@@ -9,20 +9,20 @@ std::vector<double> Elliptic_Integrals::Elliptic(const double phi, const double
|
|
```
|
|
```
|
|
|
|
|
|
**Parameters:**
|
|
**Parameters:**
|
|
-*'phi': The argument in degrees. It must be in the range [0,90]
|
|
|
|
-*'k': The modulus. It must be in the range [−1,1]
|
|
|
|
|
|
+* 'phi': The argument in degrees. It must be in the range [0,90]
|
|
|
|
+* 'k': The modulus. It must be in the range [−1,1]
|
|
|
|
|
|
**Returns:**
|
|
**Returns:**
|
|
A vector containing the values of F(ϕ,k) (at the first position) and E(ϕ,k) (at the second position).
|
|
A vector containing the values of F(ϕ,k) (at the first position) and E(ϕ,k) (at the second position).
|
|
|
|
|
|
**Exception:s**
|
|
**Exception:s**
|
|
-*Throws an error if 'k' is not within the range [−1,1]
|
|
|
|
-*Throws an error if 'phi' is not within the range [0,90]
|
|
|
|
|
|
+* Throws an error if 'k' is not within the range [−1,1]
|
|
|
|
+* Throws an error if 'phi' is not within the range [0,90]
|
|
|
|
|
|
**Special Cases:**
|
|
**Special Cases:**
|
|
-*If 'k' is equal to 1 and 'phi' is 90, the function returns ∞ for F(ϕ,k) and 1 for E(ϕ,k).
|
|
|
|
-*If 'k' is equal to 1, the function applies specific formulas for computing F(ϕ,k) and E(ϕ,k).
|
|
|
|
-*For other cases, the function iteratively computes the integrals until a desired level of precision is achieved.
|
|
|
|
|
|
+* If 'k' is equal to 1 and 'phi' is 90, the function returns ∞ for F(ϕ,k) and 1 for E(ϕ,k).
|
|
|
|
+* If 'k' is equal to 1, the function applies specific formulas for computing F(ϕ,k) and E(ϕ,k).
|
|
|
|
+* For other cases, the function iteratively computes the integrals until a desired level of precision is achieved.
|
|
|
|
|
|
**Note:**
|
|
**Note:**
|
|
This implementation has a maximum iteration limit of 1000. Adjustments may be needed based on the desired precision and performance requirements.
|
|
This implementation has a maximum iteration limit of 1000. Adjustments may be needed based on the desired precision and performance requirements.
|