Jump to content

File:Polynomialdeg3.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia
    Original file (SVG file, nominally 400 × 400 pixels, file size: 737 bytes)

    Summary

    Description

    Polynomial of degree 3 with roots at 2, -1, and -4:

    y=14(x+4)(x+1)(x2)=14(x3+3x26x8)=14x3+34x232x2
    Date
    Source Polynomialdeg3.png
    Author N.Mori
    Permission
    (Reusing this file)
    Public domain This work has been released into the public domain by its author, N.Mori. This applies worldwide.
    In some countries this may not be legally possible; if so:
    N.Mori grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
    SVG development
    InfoField
     The SVG code is valid.
     This plot was created with Matplotlib.
    Source code
    InfoField

    Python code

    Source code
    # Author: Ika, 2013-07-24
    from pylab import *
    import pylab as pl
    import numpy as np
    
    # Create a figure of size 8x6 points, 80 dots per inch
    pl.figure(figsize=(8,8), dpi=80)
    
    # Create a plot of the cubic function y=(x+4)(x+1)(x-2)/4
    x = np.linspace(-5.0,4.0,256, endpoint=True)
    y = (x+4)*(x+1)*(x-2)/4
    pl.plot(x,y,color="magenta", linewidth=3.0, linestyle="-")
    
    # Set labels
    pl.xlim(-5,4)
    pl.ylim(-4,7)
    
    # Move the spines
    ax = pl.gca()
    ax.set_xlabel('x')
    ax.set_ylabel('y')
    ax.text(-5, 3, r'$y=\frac{1}{4}(x+4)(x+1)(x-2)$', fontsize=20)
    
    # Set up the grid
    ax.spines['right'].set_color('none')
    ax.spines['top'].set_color('none')
    ax.xaxis.set_ticks_position('bottom')
    ax.spines['bottom'].set_position(('data',0))
    ax.yaxis.set_ticks_position('left')
    ax.spines['left'].set_position(('data',0))
    ax.grid(color="grey",linestyle='--',linewidth=1)
    
    # Save the figure to the output SVG file
    plt.savefig("Cubic_Function_SVG.svg");
    

    Captions

    Graphing of a third degree polynomial, with roots at -4, -1 and 2, and a y-intercept of -2.

    Items portrayed in this file

    depicts

    6 January 2007

    737 byte

    image/svg+xml

    6b25de438d8c38ccbc816cead66e0c79b7d47094

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current16:33, 2 January 2015Thumbnail for version as of 16:33, 2 January 2015400 × 400 (737 bytes)KrishnavedalaReverted to version as of 13:02, 30 August 2008: Cleaner rendering. text and graph not clear in the newly uploaded version.
    08:33, 24 July 2013Thumbnail for version as of 08:33, 24 July 2013720 × 720 (34 KB)IkamusumeFan1. Redrew completely using Matplotlib; 2. Source code added; 3. Labels added.
    13:02, 30 August 2008Thumbnail for version as of 13:02, 30 August 2008400 × 400 (737 bytes)N.Mori{{Information |Description= |Source= |Date= |Author= |Permission= |other_versions= }}
    13:42, 6 January 2008Thumbnail for version as of 13:42, 6 January 2008400 × 400 (965 bytes)N.Mori{{Information| |Description=Polynomial of degree 3: <math>y=\frac{x^3}{4}+\frac{3x^2}{4}-\frac{3x}{2}-2=\frac{1}{4}(x+4)(x+1)(x-2)</math> |Source=Image:Polynomialdeg3.png |Date=2007-01-06 |Author=~~~ |Permission=See below |other_versions=None }} [[Cat

    Global file usage

    The following other wikis use this file:

    View more global usage of this file.

    Metadata