Cannabis

Original file(SVG file, nominally 360 × 288 pixels, file size: 43 KB)

Summary

Description
English: Example of 2 characteristic functions which coincide over the region [-1,1] but are different elsewhere.
Source Own work
Author Stpasha
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

# Author: Ika, 2013-07-23
import numpy as np
import matplotlib.pyplot as plt
import scipy.special as sp
 
X = np.arange(-5, 5, 0.01)                                                                             
 
plt.clf()
plt.figure(figsize=(4,3.2))
plt.axes([0.17,0.13,0.79,0.8])
plt.hold(True)
 
Q = []

Y = np.exp(-np.abs(X))
a = plt.plot(X, Y, '-', color='blue', lw=2)
Q.append(a)

Y = []
for x in X:
	if np.exp(-np.abs(x)) > 2/(np.exp(1)*(1+np.abs(x))):
		Y.append(np.exp(-np.abs(x)))
	else:
		Y.append(2/(np.exp(1)*(1+np.abs(x))))
a = plt.plot(X, Y, '-', color='purple', lw=2)
Q.append(a)
 
plt.xlabel("$t$")
plt.ylabel(r"$\mathrm{Cf}(t)$")
bx = plt.legend(Q, (r"$\varphi_1 = e^{-┃t┃}$", r"$\max\{\varphi_1,\frac{2}{(1+┃t┃)e}\}$"),\
                numpoints=1, handlelen=0.05, handletextpad=0.4,\
                loc="upper right", prop={'size':10})
bx.draw_frame(False)
plt.xlim(-5,5)
 
plt.savefig("cfs_coincide_over_a_finite_interval.pdf")
plt.savefig("cfs_coincide_over_a_finite_interval.eps")
plt.savefig("cfs_coincide_over_a_finite_interval.svg")

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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

copyright status

copyrighted, dedicated to the public domain by copyright holder

copyright license

released into the public domain by the copyright holder

source of file

original creation by uploader

media type

image/svg+xml

checksum

d36c0d64ab53cbcad0eaf001326c3ed58d116ba8

determination method: SHA-1Ayubu

data size

44,061 byte

height

288 pixel

width

360 pixel

File history

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

Date/TimeThumbnailDimensionsUserComment
current22:43, 22 July 2013Thumbnail for version as of 22:43, 22 July 2013360 × 288 (43 KB)IkamusumeFanChange t to x according to the definition of Cf.
22:41, 22 July 2013Thumbnail for version as of 22:41, 22 July 2013360 × 288 (45 KB)IkamusumeFan1. Latex render the formular upper right; 2. Python source code added; 3. Axis labels added.
04:28, 19 July 2009Thumbnail for version as of 04:28, 19 July 2009319 × 181 (28 KB)Stpashaattempt to fix fonts
04:11, 19 July 2009Thumbnail for version as of 04:11, 19 July 2009319 × 181 (29 KB)Stpasha{{Information |Description={{en|1=Example of 2 characteristic functions which coincide over the region [-1,1] but are different elsewhere.}} |Source=Own work by uploader |Author=Stpasha |Date= |Permission= |other_versions= }}
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Global file usage

The following other wikis use this file:

Metadata

Leave a Reply