Questions tagged [hyperbolic-function]
36 questions
1
vote
1 answer
Inverse hyperbolic sinus returns nan in Ironpython2.7
I am trying to use asinh function from math module in Ironpython 2.7. Anytime I have a float < -1, I get nan as a result. I know that in cmath they are some branch cuts due to the potential use of complex numbers, but here I work with reals and the…

Jacques Gaudin
- 15,779
- 10
- 54
- 75
1
vote
1 answer
Tanh returning NaN for large input?
In my node.js program, I ran this code
console.log(Math.tanh(-858.625086043538));
and it returned NaN. Yet, tanh (hyperbolic tangent) http://mathworld.wolfram.com/HyperbolicTangent.html is defined for all x. It should just return -1, but its giving…

omega
- 40,311
- 81
- 251
- 474
0
votes
1 answer
Why the computing efficiency of torch.tanh is much higher than the direct expression?
The two ways of computing 'tanh' are shown as follows. Why the computing efficiency of torch.tanh(1) is much higher than the direct expression(2)? I am confused. And where can I find the original code of torch.tanh in pytorch? Dose it written by…

BONNED
- 23
- 1
- 5
0
votes
0 answers
How can I plot a function for pringle shape
I would like to reproduce pringle shape in Octave.
Please, look at the attachment - that is done in Mathematica using "Region" function.
Is possible to cut that circular shape also in Octave? Until now I've got this (code below) but it has…

Aaa A
- 79
- 5
0
votes
1 answer
RuntimeWarning: overflow encountered in cosh -- Python. What does this mean?
I'm running the following calculation:
N = 2**15
dx = 0.1
x = np.arange(-N/2,N/2)
u0 = np.zeros([N, 1])
L = N * dx
x0 = x[1] + 2 * delta
delta = 15
while x0 < L - delta:
l1 = 1.267;
x0 = x0 + delta
r = 1/(l1*np.cosh(x)**2)
u0 = r +…

Dimitri_896
- 137
- 4
0
votes
1 answer
Solving hyperbolic function using Newton-Raphson in python
I was trying to solve an equation for the catenary and wanted to use the Newton-Raphson method.
from math import sinh, cosh
y = 0.4 #Has taken to initiate the iteration.
k = 3/2
for _ in range(5): #Iterations for Newton-Raphson…
user16657590
0
votes
2 answers
Python: How to plot y=cosh(x) *cos(5x)
using Python I would like to plot a curve for the function y=cosh(x)*cos(5x) in my Jupyter Notebook.
In other words:
(cosine hyperbolicus of x) times (cosine of 5x)
How do I do this?
What do I need to import?
Thank you very much in…

cs_question_asker
- 67
- 7
0
votes
0 answers
Sinc hyperbolic function in Python
I am sure you have all heard of the sinc function defined as sinc(x) = sin(x)/x. There is an implementation in numpy which works great, but I was wondering if there was also a hyperbolic version of this function, i.e.
sinhc(x) = sinh(x)/x

xabdax
- 165
- 1
- 4
0
votes
0 answers
What is the center of gravity for a quarter parabolic elips?
I could not find anywhere the center of gravity for half of the parabolic elips area (shown in figure) which formula is x^n+y^n=1, starting from a x,y value. I need parametric answer but if not possible, n might be assumed as 4 and x,y(0.4,0.4) as…

adams x
- 19
- 1
- 3
0
votes
1 answer
How to implement the following hyperbolic function in Python?
I am a Python beginner, and I have the following problem: I have a set of values between 0 and 1, and I want to implement a nonlinear function that outputs values between 0 and 100 as follows:
(Sorry for the lack of mathematical description of this…

Paul Miller
- 493
- 1
- 5
- 13
0
votes
1 answer
How can I wrap data points around an object in Octave
I'm trying to wrap a signal around a hyperbolic cone (the cone looks like this http://www.sectioaurea.com/sectioaurea/the_golden_angle.htm) I've found away to wrap data around a cylinder.
See cylinder with wrapped data around it below.
%% //…

Rick T
- 3,349
- 10
- 54
- 119
0
votes
1 answer
Transform a hyperbolic Poincare disk to the band model
I want to transform a hyperbolic Poincaré disk with image textures (examples in https://www.flickr.com/photos/gbachelier/albums/72157676467905456) to the Bulatov band model and found in…

Günter Bachelier
- 121
- 8
0
votes
1 answer
faster, very accurate approximation for tanh
I was playing with tanh and what would be very close but not as expensive as tanh, computation wise. I came up with:
2/(1+exp(-2*x))-1
It is VERY close. The biggest delta I saw was like in the 10 to the -15 range. It's still not as cheap as…

Bing Bang
- 524
- 7
- 16
0
votes
1 answer
How can I determine the probability of an event in R for a Hyperbolic Distribution?
I would like to know how I can calculate P ≥ -0.0001. I am novice in both Mathematics, Statistics and R.
I am currently modelling some Spread Data in R. I have been able to model the data to a specific distribution (in the case of the below example…
user1587280
0
votes
1 answer
calculate logarithm using VHDL
I am trying to convert a value from linear notation to decibel notation on an FPGA.
While the equation x_dB=10*log(x_lin) is certainly well known, but I have been unable to implement it in VHDL.
I have found some identities (with arctanh being the…

jmink3
- 1
- 1
- 2