File:Csch sech coth.svg

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

Original file(SVG file, nominally 504 × 504 pixels, file size: 18 KB)

Summary

Description

The hyperbolic cosecant (red), hyperbolic secant (green) and hyperbolic cotangent (blue) graphed on the same axes.

Replaces Csch sech coth.png.

Instructions
Generated with en:Matplotlib using the script below. Edited using en:Inkscape to fix clipping issues.
Date
Source Own work
Author Fylwind at English Wikipedia
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

import numpy as np
import matplotlib.pyplot as plt

def clip(ys, limit):
    return np.ma.masked_where(np.abs(ys) > limit, ys)

lim = 8
size = 5.6
fig, ax = plt.subplots(figsize=(size, size))
xs = np.linspace(-lim, lim, 1000)
ax.plot(xs, clip(1 / np.sinh(xs), lim * 2), label="y = csch(x)",
        color="#b30000", linestyle="-", linewidth=2)
ax.plot(xs, 1 / np.cosh(xs), label="y = sech(x)",
        color="#00b300", linestyle="--", linewidth=2)
ax.plot(xs, clip(1 / np.tanh(xs), lim * 2), label="y = coth(x)",
        color="#0000b3", linestyle="-.", linewidth=2)
ax.set_xlim(-lim, lim)
ax.set_ylim(-lim, lim)
ax.set_xticks([-1, 0, 1])
ax.set_yticks([-1, 0, 1])
ax.set_xlabel("x")
ax.set_ylabel("y")
ax.grid("on")
ax.legend(loc="lower right")
fig.tight_layout()
fig.savefig("csch_sech_coth.svg", transparent=True)

Licensing

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Original upload log

(All user names refer to en.wikipedia)

  • 2006-03-14 10:38 Ktims 1600×1200×0 (10563 bytes) The hyperbolic cosecant (red), hyperbolic secant (green) and hyperbolic cotangent (blue) graphed on the same axes.
  • 2006-03-14 10:35 Ktims 1600×1200×0 (13176 bytes) The hyperbolic cosecant (red), hyperbolic secant (green) and hyperbolic cotangent (blue) graphed on the same axes.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

10 March 2016

File history

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

Date/TimeThumbnailDimensionsUserComment
current23:20, 10 March 2016Thumbnail for version as of 23:20, 10 March 2016504 × 504 (18 KB)FylwindTry again to fix the clipping problem
23:03, 10 March 2016Thumbnail for version as of 23:03, 10 March 2016504 × 504 (31 KB)FylwindTry to fix SVG clipping bug
22:53, 10 March 2016Thumbnail for version as of 22:53, 10 March 2016504 × 504 (22 KB)FylwindMake the asymptotic behavior more evident from the graph.
00:38, 6 February 2007Thumbnail for version as of 00:38, 6 February 20071,600 × 1,200 (15 KB)Alejo2083dashed lines
00:33, 6 February 2007Thumbnail for version as of 00:33, 6 February 20071,600 × 1,200 (10 KB)Alejo2083{{Information |Description=The hyperbolic cosecant (red), hyperbolic secant (green) and hyperbolic cotangent (blue) graphed on the same axes. Replaces en::Image:Csch_sech_coth.png. == Instructions == Generated with en:gnuplot using the script

The following 2 pages use this file:

Global file usage

The following other wikis use this file:

Metadata