File:Logarithm derivative.svg
Summary
Description |
English: Graph of the logarithm and illustration of the derivative.
Created using python. from numpy import linspace,log
from matplotlib.pyplot import *
lineEQ = lambda k,a: log(a)+(k-a)/a
x1 = linspace(0,7,100)
y1 = log(x1)
x2 = linspace(-1.5,4,3)
y2 = lineEQ(x2,1.5)
x3 = [1.5,2.5,2.5]
y3 = [][0],1.5), lineEQ(x3[0],1.5), lineEQ(x3[1],1.5)]
fig = figure(figsize=(5,3))
ax = fig.add_subplot(111)
for direction in ["left","bottom"]:
ax.spines[direction].set_position('zero')
ax.spines[direction].set_smart_bounds(True)
for direction in ["right","top"]:
ax.spines[direction].set_color('none')
ax.xaxis.set_ticks_position('bottom')
ax.yaxis.set_ticks_position('left')
ax.grid(False)
ax.set_xticks([0,1.5,3,4,5])
ax.set_yticks([-2,-1,1])
ax.set_ylim(-2.2,1.5)
ax.set_xlim(-1,5.5)
ax.plot(x1,y1,'g',linewidth=1.)
ax.plot(x2,y2,'k',linewidth=1.)
ax.plot(x3,y3,'k--',linewidth=1.)
ax.plot(1.5,log(1.5),'ro')
ax.text(5.5,.2,"x")
ax.text(0.1,1.5,"y")
ax.text(4,1,r"$f(x)=\ln(x)$")
ax.text(2,.175,"1",fontsize=7)
ax.text(2.6,.5,r"$f^'(x)=\frac{1}{x}$",fontsize=12)
ax.minorticks_on()
#fig.show()
fig.savefig("Logarithm_derivative.svg",bbox_inches="tight",\
pad_inches=.15)
|
Date | |
Source | Own work |
Author | Krishnavedala |
Other versions | File:Logarithm_derivative.png |
Licensing
I, the copyright holder of this work, hereby publish it under the following licenses:
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.
![]() |
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.
Category:CC-BY-SA-3.0
Category:Differential calculus
Category:GFDL
Category:Images with Python source code
Category:License migration redundant
Category:Logarithm
Category:Pages using deprecated source tags
Category:SVG created with Matplotlib
Category:Self-published work
Category:Unchecked SVG validity