polykin.math¤
roots_xtanx
cached
¤
roots_xtanx(
a: float, N: int, xtol: float = 1e-06
) -> FloatVector
Determine the first N
roots of the transcendental equation
x_n*tan(x_n) = a
.
PARAMETER | DESCRIPTION |
---|---|
a
|
Parameter.
TYPE:
|
N
|
Number of roots.
TYPE:
|
xtol
|
Tolerance.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
FloatVector
|
Roots of the equation. |
Examples:
Determine the first 4 roots for a=1.
>>> from polykin.math import roots_xtanx
>>> roots_xtanx(1.0, 4)
array([0.86033359, 3.42561846, 6.43729818, 9.52933441])
Source code in src/polykin/math/special.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
|