MCPcopy Index your code
hub / github.com/RustPython/RustPython / cosh

Function cosh

crates/stdlib/src/math.rs:304–306  ·  view source on GitHub ↗
(x: ArgIntoFloat, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

302
303 #[pyfunction]
304 fn cosh(x: ArgIntoFloat, vm: &VirtualMachine) -> PyResult<f64> {
305 pymath::math::cosh(x.into_float()).map_err(|err| pymath_exception(err, vm))
306 }
307
308 #[pyfunction]
309 fn sinh(x: ArgIntoFloat, vm: &VirtualMachine) -> PyResult<f64> {

Callers 2

logistic_kernelFunction · 0.90
sigmoid_kernelFunction · 0.90

Calls 2

pymath_exceptionFunction · 0.85
into_floatMethod · 0.80

Tested by

no test coverage detected