File:Surface banane trompette.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 512 × 352 pixels, file size: 115 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
Français : Fonction différentiable non-convexe avec lignes de niveau. Les lignes de niveau ont une forme de banane, les sections par des plans verticaux ont une forme de trompette.
English: Differentiable non-convex function with cpontour lines. The level lines are banana-shaped, the sections by a vertical plane are trumpet-shaped.
Date
Source Own work
Author Cdang

Created with Scilab, processed with Inkscape.

Scilab source

// Banana-like contours: ellipse bent by a parabola
r1 = 1;
r2 = 0.5;
theta = linspace(0, %pi/2, 20);
ct = cos(theta);
st = sin(theta);
x = r1*[ct, -st(2:$), -ct(2:$), st(2:$)];
y = r2*[st, ct(2:$), -st(2:$), -ct(2:$)] + x.^2;
z = 0:0.1:0.9;

taille =  size(z, "*")*size(x, "*");

// vertical trumpet-like profile: z = 1 - 1/(1 + R^2)
// => R = sqrt(1/(1 - z) - 1)
R = ones(x)'*sqrt(1 ./(1 - z) - 1);

X = matrix(R.*(x'*ones(z)), 1, taille);
Y = matrix(R.*(y'*ones(z)), 1, taille);
Z = matrix(ones(x)'*z, 1, taille);

figure(0);
clf();
param3d(X, Y, Z); // surface
param3d(X, Y, zeros(Z), theta=30, alpha=80); // projection des courbes de niveau

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 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.
  • 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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current12:29, 24 March 2017Thumbnail for version as of 12:29, 24 March 2017512 × 352 (115 KB)Cdang (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata