קובץ:Secant method example code result.svg

תוכן הדף אינו נתמך בשפות אחרות.
מתוך ויקיפדיה, האנציקלופדיה החופשית

לקובץ המקורי(קובץ SVG, הגודל המקורי: 600 × 480 פיקסלים, גודל הקובץ: 19 ק"ב)

ויקישיתוף זהו קובץ שמקורו במיזם ויקישיתוף. תיאורו בדף תיאור הקובץ המקורי (בעברית) מוצג למטה.

תקציר

תיאור
English: Example of finding the root of the function represented by the red line (cos(x) − x3) using the secant method, with the increasingly accurate approximations represented by the blue straight lines.
תאריך יצירה
מקור Intended to replace bitmap graph en:Image:Secantmethod_jaredwf.png, with straight line equations derived from example program on article.
יוצר Qef
גרסאות אחרות Original bitmap version: http://en.wikipedia.org/wiki/Image:Secantmethod_jaredwf.png

Source code

Created with Gnuplot using the following input file:

set terminal svg font "Bitstream Vera Sans,12"
set output "Secant_method_example_code_result.svg"

set xrange [0:1]
set yrange [-0.5:3]
set xzeroaxis linetype -1
set yzeroaxis linetype -1
set xtics axis nomirror offset 0,0.3
set ytics axis nomirror offset -0.8
set key off
set border 0

plot -1.4596976941*x + 1.0000000000 with line lt rgbcolor "blue" lw 0.3, \
     -2.8976523576*x + 2.4379546634 with line lt rgbcolor "blue" lw 0.4, \
     -2.4441383687*x + 2.1272643125 with line lt rgbcolor "blue" lw 0.5, \
     -2.9527747549*x + 2.5552081431 with line lt rgbcolor "blue" lw 0.6, \
     -3.0224715585*x + 2.6158689981 with line lt rgbcolor "blue" lw 0.7, \
     -3.0081989720*x + 2.6035180968 with line lt rgbcolor "blue" lw 0.8, \
     -3.0085369652*x + 2.6038106210 with line lt rgbcolor "blue" lw 0.9, \
     -3.0085385603*x + 2.6038120015 with line lt rgbcolor "blue" lw 1.0, \
     cos(x) - x*x*x with line linetype rgbcolor "red" linewidth 2

The series of line equations for the straight blue lines were produced by the example program in the Wikipedia:Secant method article, by adding the following lines to the start of the loop in the SecantMethod function:

double g = (f(xn) - f(xn_1)) / (xn - xn_1);
printf("%.10f*x + %.10f\n", g, f(xn) - (g * xn));

The SVG was filtered with the following command to change the hyphen in a label to a proper minus sign:

sed -i 's/<text>-/<text>\xE2\x88\x92/g' Secant_method_example_code_result.svg

רישיון

Public domain היצירה הזאת שוחררה לנחלת הכלל על־ידי היוצר שלה, Qef. זה תקף בכל העולם.

יש מדינות שבהן הדבר אינו אפשרי על פי חוק, אם כך:
Qef מעניק לכל אחד את הזכות להשתמש ביצירה הזאת לכל מטרה, ללא שום תנאי, אלא אם כן תנאים כאלה נדרשים לפי החוק.

כיתובים

נא להוסיף משפט שמסביר מה הקובץ מייצג

פריטים שמוצגים בקובץ הזה

מוצג

היסטוריית הקובץ

ניתן ללחוץ על תאריך/שעה כדי לראות את הקובץ כפי שנראה באותו זמן.

תאריך/שעהתמונה ממוזערתממדיםמשתמשהערה
נוכחית20:00, 4 ביולי 2008תמונה ממוזערת לגרסה מ־20:00, 4 ביולי 2008‪480 × 600‬ (19 ק"ב)QefGradients of blue lines were wrong (calculated with x/y instead of y/x)
16:39, 4 ביולי 2008תמונה ממוזערת לגרסה מ־16:39, 4 ביולי 2008‪480 × 600‬ (19 ק"ב)QefReplace hyphen character in label with proper minus sign.
16:20, 4 ביולי 2008תמונה ממוזערת לגרסה מ־16:20, 4 ביולי 2008‪480 × 600‬ (19 ק"ב)Qef{{Information |Description={{en|1=Example of finding the root of the function represented by the red line (cos(x) - x^3) using the secant method, with the increasingly accurate approximations represented by the blue straight lines.}} |Source=Intended to r

הדף הבא משתמש בקובץ הזה:

שימוש גלובלי בקובץ

אתרי הוויקי השונים הבאים משתמשים בקובץ זה:

מטא־נתונים