File:Unduloid.svg
From testwiki
Jump to navigation
Jump to search
Original file (SVG file, nominally 575 × 449 pixels, file size: 773 KB)
Contents
This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.
Summary
| DescriptionUnduloid.svg |
English: Plot of the unduloid constant mean curvature surface, generated by rotating an elliptic catenary around the x-axis.
Español: Gráfico del unduloide. Esta superficie tiene curvature media constante y es generada a partir de rotar una catenaria elíptica alrededor del eje x.
Türkçe: Sabit ortalama egri yuzeyli unduloid grafigi. Eliptik bir zincir egrisinin x ekseni etrafinda dondurulmesiyle elde edilmistir. |
| Date | |
| Source | Own work |
| Author | Nicoguaro |
| Creation InfoField | The parameterization used was
where and are parameters. For the plot and . This file was created with Python,NumPy and Matplotlib. |
| SVG development InfoField | |
| Source code InfoField | Python codefrom __future__ import division
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
from scipy.integrate import quad
def fun(alpha, a, b):
return np.sqrt(a**2*np.sin(alpha)**2 + b**np.cos(alpha)**2)
a = 1.7
b = 1.2
u = np.linspace(0, 20, 100)
v = np.linspace(0, 2*np.pi, 30)
integral = np.array([quad(fun, 0, uval, args=(a, b))
for uval in u])
xu = integral[:, 0]
xu = xu + np.sqrt(a**2 - b**2)*np.sin(u)*(np.sqrt(a**2 - b**2)*np.cos(u) + a)/\
fun(u, a, b)
yu = b*(np.sqrt(a**2 - b**2)*np.cos(u) + a)/fun(u, a, b)
x = np.outer(xu, np.ones_like(v))
y = np.outer(yu, np.cos(v))
z = np.outer(yu, np.sin(v))
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.plot_surface(x, y, z, rstride=1, cstride=1, cmap="summer", alpha=0.6,
lw=0.4)
ax.view_init(azim=-60, elev=30)
ax.set_xlim([0, 35])
ax.set_ylim([-10, 10])
ax.set_zlim([-10, 10])
plt.savefig("Unduloid.svg", bbox_inches="tight", transparent=True)
plt.show()
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution 4.0 International 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.
Captions
Add a one-line explanation of what this file represents
Items portrayed in this file
depicts
15 February 2016
image/svg+xml
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 01:47, 16 February 2016 | 575 × 449 (773 KB) | wikimediacommons>Nicoguaro | User created page with UploadWizard |
File usage
There are no pages that use this file.
Retrieved from "https://en.wiki.beta.math.wmcloud.org/wiki/File:Unduloid.svg"