Jump to content

File:Hyperbolic and exponential; sinh.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 319 × 503 pixels, file size: 66 KB)

Summary

Description
English: Hyperbolic functions can be defined by exponential functions. This graph shows that the hyperbolic cosine function is an average of exponential functions as . Created using python and matplotlib library.
Date
Source Own work
Author Krishnavedala
Other versions File:Hyperbolic_and_exponential;_sinh.png
 
W3C-validity not checked.
Source Code
from numpy import linspace, append
from math import sinh, exp
from matplotlib.pyplot import *
from mpl_toolkits.axes_grid.axislines import SubplotZero

fig = figure(figsize=(5,7))
ax = SubplotZero(fig,111)
fig.add_subplot(ax)
ax.grid(True)
ax.set_ylim((-13,15))
for direction in ["xzero","yzero"]:
	ax.axis[direction].set_axisline_style("-|>")
	ax.axis[direction].set_visible(True)
for direction in ["left","right","bottom","top"]:
	ax.axis[direction].set_visible(False)

t = linspace(-3,3,50)
H0,H1,H2 = [],[],[]
for i in t:
	H1 = append(H1,exp(i))
	H2 = append(H2,exp(-i))
#        H0 = append(H0,sinh(i))  # either this
        H0 = append(H0,0.5*(exp(i)-exp(-i)))  # or this
ax.plot(t,H0,label=r"$\mathrm{sinh}(x)$")
ax.plot(t,H1,label=r"$e^x$")
ax.plot(t,H2,label=r"$e^{-x}$")

t = linspace(-2.5,2.5,11)
for i in t:
	H0 = sinh(i)
	H1 = exp(i)
	H2 = exp(-i)
	ax.plot([i,i,i],[H0,H1,H2],'yo-.')
ax.text(3,0.5,r"x")
ax.text(-0.5,14.5,r"y")
ax.legend(frameon=False)
ax.minorticks_on()
#fig.show()
fig.savefig("Hyperbolic_and_exponential;_sinh.png",bbox_inches="tight",\
	pad_inches=.15)

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
You may select the license of your choice.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

4 June 2011

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:14, 4 June 2011Thumbnail for version as of 12:14, 4 June 2011319 × 503 (66 KB)Krishnavedala{{Information |Description ={{en|1=Hyperbolic functions can be defined by exponential functions. This graph shows that the hyperbolic cosine function is an average of exponential functions as <math>\

The following 2 pages use this file:

Global file usage

The following other wikis use this file: