E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
jacobi_zeta
eve::jacobi_zeta = functor<jacobi_zeta_t>
inline
constexpr
Header file
#include <eve/module/elliptic.hpp>
Callable Signatures
namespace
eve
{
// Regular overload
constexpr
auto
jacobi_zeta
(
floating_value
auto
u
,
floating_value
auto
x
)
noexcept
;
// 1
// Lanes masking
constexpr
auto
jacobi_zeta
[
conditional_expr
auto
c
](
/*any of the above overloads*/
)
noexcept
;
// 2
constexpr
auto
jacobi_zeta
[
logical_value
autolm
](
/*any of the above overloads*/
)
noexcept
;
// 2
}
eve::conditional_expr
Specifies that a type is a Conditional Expression.
Definition
conditional.hpp:28
eve::floating_value
The concept floating_value<T> is satisfied if and only if T satisfies eve::value and the element type...
Definition
value.hpp:116
eve::logical_value
The concept logical_value<T> is satisfied if and only if T satisfies eve::value and the element type ...
Definition
value.hpp:134
eve::jacobi_zeta
constexpr auto jacobi_zeta
elementwise_callable object computing the Jacobi Zeta function.
Definition
jacobi_zeta.hpp:82
eve::translate_t
typename decltype(detail::as_translated_type(as< T >{}))::type translate_t
Returns the final translated type of T.
Definition
translation.hpp:107
eve
EVE Main Namespace.
Definition
abi.hpp:19
Parameters
u
: argument.
x
: amplitude parameter ( \(0\le x\le 1\)).
c
:
Conditional expression
masking the operation.
l
:
Logical value
masking the operation.
Return value
return the jacobi zeta value.
The operation is performed conditionally
External references
DLMF: Jacobian Elliptic
Wolfram MathWorld: Jacobi Elliptic Functions
Wikipedia: Jacobi elliptic functions
Example
// revision 1
#include <eve/module/elliptic.hpp>
#include <iostream>
eve::wide
wf
{1.0, 0.0, 0.75, 0.5};
eve::wide
wphi
{1.0, 1.0e-30, 0.5, 0.0};
int
main
(){
std::cout <<
"<- wf = "
<<
wf
<<
"\n"
;
std::cout <<
"<- wphi = "
<<
wphi
<<
"\n"
;
std::cout <<
"-> jacobi_zeta(wphi, wf) = "
<<
eve::jacobi_zeta
(
wphi
,
wf
) <<
"\n"
;
std::cout <<
"-> jacobi_zeta[ignore_last(2)](wphi,wf)= "
<<
eve::jacobi_zeta
[
eve::ignore_last
(2)](
wphi
,
wf
) <<
"\n"
;
std::cout <<
"-> jacobi_zeta[wf != 1.0](wphi,wf) = "
<<
eve::jacobi_zeta
[
wf
!= -1.0f](
wphi
,
wf
) <<
"\n"
;
std::cout <<
"-> jacobi_zeta(pio_2[lower], wf) = "
<<
eve::jacobi_zeta
(eve::pio_2[eve::lower](
eve::as
(
wphi
)),
wf
) <<
'\n'
;
std::cout <<
"-> jacobi_zeta(pio_2[upper], wf) = "
<<
eve::jacobi_zeta
(eve::pio_2[eve::upper](
eve::as
(
wphi
)),
wf
) <<
'\n'
;
}
eve::as
Lightweight type-wrapper.
Definition
as.hpp:29
eve::ignore_last
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition
conditional.hpp:320
eve::wide
Wrapper for SIMD registers.
Definition
wide.hpp:94
eve