File:Infimal convolution of a cone with a cubic curve.svg

Original file(SVG file, nominally 600 × 400 pixels, file size: 1.96 MB)

Summary

Description
English: Plotted in Julia 1.7.2 by

```julia using Plots using LaTeXStrings using Colors

xlims = (-1, 1) function f(x)

   return x^2 - x^3

end

function cone(x0, y0, x)

   return y0 + abs(x-x0)

end

randxs = collect(range(xlims[1], xlims[2], length=30)) randys = f.(randxs)

xs = range(xlims[1], xlims[2], length=1000) ys = f.(xs)

u = (x -> 7.5).(xs)

Plots.plot() Plots.plot!(xs, ys) Plots.scatter!(randxs, randys)

for i = 1:length(randxs)

   x = randxs[i]
   y = randys[i]
   Plots.plot!(xs, (t -> cone(x, y, t)).(xs), color=Colors.RGBA(0,0,0,0.1))
   Plots.plot!(xs, (t -> cone(x, y, t)).(xs), fillrange = u, fillalpha = 0.01, c = 3)

end

scene = Plots.plot!(ylim = (-0.1, 2), legend=false) savefig(scene, "infimal convolution plot.svg")

```
Date
Source Own work
Author Cosmia Nebula

Licensing

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.

Captions

Infimal convolution of a cone with a cubic curve.

Items portrayed in this file

depicts

14 July 2022

File history

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

Date/TimeThumbnailDimensionsUserComment
current03:53, 15 July 2022Thumbnail for version as of 03:53, 15 July 2022600 × 400 (1.96 MB)Cosmia NebulaUploaded own work with UploadWizard
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Metadata