File:Hyperbolic and exponential; cosh.svg

Original file(SVG file, nominally 389 × 530 pixels, file size: 72 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;_cosh.png
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

Source code
from numpy import linspace, append
from math import cosh, 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((-1,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:
	H0 = append(H0,cosh(i))
	H1 = append(H1,exp(i))
	H2 = append(H2,exp(-i))
ax.plot(t,H0,label=r"$\mathrm{cosh}(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 = cosh(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;_cosh.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
current11:59, 4 June 2011Thumbnail for version as of 11:59, 4 June 2011389 × 530 (72 KB)Krishnavedala{{Information |Description ={{en|1=Hyperbolic functions can be defined by exponential functions: {| |- | style="vertical-align:top;"|[[:File:Hyperbolic and exponential; cosh.png|thumb|300px|cosh(x) i

The following 2 pages use this file:

Global file usage

The following other wikis use this file: