File:Continuous in x and y but non continuous.png

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

Original file (1,228 × 941 pixels, file size: 114 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: 3D plop of the bivariable function
This function is continuous in x and y both and respectively, but overall non continuous.


Français : Représentation en 3D de la fonction de deux variables
Cette fonction est continue par rapport à x et y respectivement, mais n'est pas continue.
Date
Source Own work
 
This plot was created with Matplotlib.
Author TomT0m

Figure generated by the python script :

from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import matplotlib.pyplot as plt
import numpy as np


def plop(X, Y):
      if X>=1 and X>Y and Y>=0 :
         return (Y/X)-Y
      elif Y>=1 and Y>X and X>=0 :
          return (X/Y)-X
      elif X==Y and Y>0:
          return 1-X
      else:
          return 0


def plop_py(func):
         fig = plt.figure()
         ax = fig.gca(projection='3d')
         myfunc = np.vectorize(func)
         x = fig.gca(projection='3d')
         X = np.arange(-1, 10, 0.05)
         Y = np.arange(-1, 10, 0.05)
         X, Y = np.meshgrid(X, Y)
         Z = myfunc(X,Y)
           
         surf = ax.plot_surface(X, Y, Z, rstride=2, cstride=1,
                     cmap=cm.gist_heat,
                     linewidth=0, antialiased=False, shade=False)
          
         plt.show()


plop_py(plop)

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

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

Date/TimeThumbnailDimensionsUserComment
current16:08, 14 December 2016Thumbnail for version as of 16:08, 14 December 20161,228 × 941 (114 KB)TomT0m (talk | contribs){{Information |Description ={{en|1=3D plop of the bivariable function <math> f(x,y)= \begin{cases}. This function is continuous in x and y both and respectively, but overall non continuous \frac{y}{x}-y & \text{if } 1 \geq x > y \geq 0 \\ \frac{x}{y...

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata