FuncSketch
Loading...
Searching...
No Matches
hyperbolic.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2026 MusicScience37 (Kenta Kabashima)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
21
22#include <cmath>
23
28
29namespace func_sketch::math {
30
32 return MathFunction(
34 "sinh", [](Real arg) { return std::sinh(arg); }));
35}
36
38 return MathFunction(
40 "cosh", [](Real arg) { return std::cosh(arg); }));
41}
42
44 return MathFunction(
46 "tanh", [](Real arg) { return std::tanh(arg); }));
47}
48
50 return MathFunction(
52 "asinh", [](Real arg) { return std::asinh(arg); }));
53}
54
56 return MathFunction(
58 "acosh", [](Real arg) { return std::acosh(arg); }));
59}
60
62 return MathFunction(
64 "atanh", [](Real arg) { return std::atanh(arg); }));
65}
66
67} // namespace func_sketch::math
Definition of AcceptableTypes struct.
Class of mathematical functions.
Definitions of common types.
double Real
Type of real numbers in this project.
Definition of GeneralMathFunction class.
auto make_general_math_function(std::string name, FunctionType &&function)
Make a general mathematical function.
Declaration of functions to create hyperbolic functions.
MathFunction acosh_function()
Create acosh function.
MathFunction cosh_function()
Create cosh function.
MathFunction asinh_function()
Create asinh function.
MathFunction sinh_function()
Create sinh function.
MathFunction atanh_function()
Create atanh function.
MathFunction tanh_function()
Create tanh function.
Definition of MathFunction class.
Traits struct to handle acceptable number types.