For faster navigation, this Iframe is preloading the Wikiwand page for File:Involutes of a cubic curve.svg.

File:Involutes of a cubic curve.svg

Original file(SVG file, nominally 1,440 × 1,440 pixels, file size: 59 KB)

Summary

Description
English: ```python

import numpy as np import matplotlib.pyplot as plt from scipy.integrate import quad # numerical integration import matplotlib.cm as cm # for colormaps

def involute(f, df, x0, l0, dxs):

   """
   f: the function that produces the curve
   df: the derivative. That is, df(x) = f'(x)
   x0: the origin point
   l0: the string length at origin point
   dxs: the differential points at which to plot the involute. 
       Assumed to be sorted in increasing order
   returns f_xs, f_ys, inv_xs, inv_ys
   """
   f_xs = x0 + dxs
   f_ys = f(f_xs)
   
   inv_xs = np.zeros(len(dxs))
   inv_ys = np.zeros(len(dxs))
   arclength_integrand = lambda x: np.sqrt(1 + df(x)**2)
   for i in range(len(dxs)):
       x = x0 + dxs[i]
       arclength = quad(arclength_integrand, x0, x)[0]
       string_length = l0 - arclength
       string_angle = np.arctan(df(x))
       inv_xs[i] = f_xs[i] + string_length * np.cos(string_angle)
       inv_ys[i] = f_ys[i] + string_length * np.sin(string_angle)
       
   return f_xs, f_ys, inv_xs, inv_ys

def plot_line(x, y, slope, dxmin, dxmax, **kwargs):

   plt.plot([x+dxmin, x+dxmax], [y+dxmin*slope, y+dxmax*slope], 
            **kwargs)

f = lambda x: x**3 df = lambda x: 3 * x**2

f_xs, f_ys, inv_xs, inv_ys = involute(f, df, 0, l0=0.8, dxs=np.arange(200) / 100 - 1) y_x_ratio = 1 plt.figure(figsize=(16, int(16*y_x_ratio))) plt.plot(f_xs, f_ys) for l0 in np.arange(20)/10-1:

   f_xs, f_ys, inv_xs, inv_ys = involute(f, df, 0, l0=l0, dxs=np.arange(200) / 100 - 0.5)
   plt.plot(inv_xs, inv_ys, color='green', linewidth=0.2)

for x in np.linspace(-0.5, 0.5, 15):

   y = f(x)
   slope = df(x)
   plot_line(x, y, slope, -1, +2, color=cm.viridis(x), marker='o',markersize=5, linewidth=1)

xlim_low = -0.5 xlim_width = 2 ylim_low = -0.5 plt.xlim(xlim_low, xlim_low + xlim_width) plt.ylim(ylim_low, ylim_low + xlim_width * y_x_ratio) plt.savefig("involutes of a cubic curve.svg") plt.show()

```
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

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

3 September 2023

File history

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

Date/TimeThumbnailDimensionsUserComment
current06:07, 4 September 2023Thumbnail for version as of 06:07, 4 September 20231,440 × 1,440 (59 KB)Cosmia NebulaUploaded while editing "Involute" on en.wikipedia.org

File usage

The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Global file usage

The following other wikis use this file:

Metadata

{{bottomLinkPreText}} {{bottomLinkText}}
File:Involutes of a cubic curve.svg
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?