kyosu v0.1.0
Complex Without Complexes
 
Loading...
Searching...
No Matches

◆ rsqrt

kyosu::rsqrt = eve::functor<rsqrt_t>
inlineconstexpr

Computes a square root value.

Header file

#include <kyosu/functions.hpp>

Callable Signatures

namespace kyosu
{
// regular call
template<kyosu::concepts::cayley_dickson_like T> constexpr complexify_t<T> rsqrt(T z) noexcept;
// semantic modifyers
template<concepts::real T> constexpr complexify_t<T> rsqrt[real_only](T z) noexcept;
}
constexpr auto rsqrt
Computes a square root value.
Definition: rsqrt.hpp:84
Main KYOSU namespace.
Definition: cinf.hpp:13

Parameters

  • z: Value to for which square root is computed.

Return value

  • A real typed input z is treated as if complex(z) was entered, unless the option real_only is used in which case the parameter must be a floating_value, the real part of the result will the same as an eve::rsqrt implying a Nan result if the result is not real.
  • Returns a square root of 1/z.

External references

Example