Oakfield API Documentation 1.0.0
Numerical core APIs
Loading...
Searching...
No Matches
theta.h
Go to the documentation of this file.
1
5#ifndef OAKFIELD_MATH_THETA_H
6#define OAKFIELD_MATH_THETA_H
7
8#include <stddef.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
49
59
64
79theta_eval theta1_norm_eval(double z, double q, double s1, double c1);
80
95theta_eval theta_square_eval(double z, double q, double s1, double c1);
96
111theta_eval theta_saw_unit_eval(double z, double q, double s1, double c1);
112
133theta_eval theta_triangle_eval(double z, double q, double s1, double c1);
134
135/* Backward-compatible scalar wrappers. These return NaN if evaluation fails. */
136double theta1_norm(double z, double q, double s1, double c1);
137double theta_square(double z, double q, double s1, double c1);
138double theta_saw_unit(double z, double q, double s1, double c1);
139double theta_triangle(double z, double q, double s1, double c1);
140
141#ifdef __cplusplus
142}
143#endif
144
145#endif /* OAKFIELD_MATH_THETA_H */
Theta waveform value with error estimate and convergence metadata.
Definition theta.h:53
size_t terms_used
Definition theta.h:56
double value
Definition theta.h:54
theta_status status
Definition theta.h:57
double abs_error
Definition theta.h:55
theta_eval theta_triangle_eval(double z, double q, double s1, double c1)
Evaluate the triangle-like odd-harmonic Lambert/theta series.
theta_eval theta_square_eval(double z, double q, double s1, double c1)
Evaluate the square-like theta quotient [theta3(0,q)/theta2(0,q)] * [theta1(z,q)/theta4(z,...
const char * theta_status_string(theta_status status)
Human-readable description of a theta_status value.
theta_eval theta1_norm_eval(double z, double q, double s1, double c1)
Evaluate theta1(z,q) / theta2(0,q).
theta_eval theta_saw_unit_eval(double z, double q, double s1, double c1)
Evaluate the phase-based saw map (1/pi) arg(1 - q exp(-i z)).
theta_status
Research-grade evaluation of real Jacobi-theta-derived waveform families.
Definition theta.h:43
@ THETA_STATUS_OK
Definition theta.h:44
@ THETA_STATUS_DOMAIN_ERROR
Definition theta.h:45
@ THETA_STATUS_SINGULAR
Definition theta.h:46
@ THETA_STATUS_NO_CONVERGENCE
Definition theta.h:47