Hverdag · verktøy

Funksjonsgraftegner

Skriv inn polynomkoeffisientene fra høyeste potens til konstantleddet, og velg deretter det synlige x-intervallet.

Kjøres i nettleseren. Ingen opplasting.

Values are processed locally in this browser.

Result

—Funksjonsgraftegner

Om verktøyet

Funksjonsgraftegner sem complicação.

Denne enkle graftegneren viser et polynom av grad 1–4 ved hjelp av samplede punkter. Den tolker ikke vilkårlige uttrykk og lover ikke symbolske skjæringspunkter.

Veiledning

Slik bruker du Funksjonsgraftegner

The Function Grapher draws a polynomial from its coefficients. You type the numbers from the highest power down to the constant, choose the left and right ends of x, and pick how many points to sample. It draws a line through the points and lists every x,y pair as text. It does not read formulas such as sin(x), it has no axis labels, and it does not find roots or crossings.

Slik gjør du

  1. Type the coefficients from the highest power to the constant, separated by commas, spaces or semicolons. For x squared minus 4, type 1,0,-4.
  2. Set Minimum x and Maximum x. The minimum must be smaller than the maximum.
  3. Set the number of plot points between 40 and 400. More points give a smoother line.
  4. Press Calculate. The graph appears and the x,y pairs are listed in the result, which you can copy.

Eksempler

The starting example, x squared minus 4

Du skriver inn
Koeffisienter
1,0,-4
Minimum x
-5
Maksimum x
5
Prøvepunkter
160
Du får
Rader
161
Første
-5,21
Andre
-4.938,20.379
Midten
0,-4
Siste
5,21

Samples are spread evenly from -5 to 5, giving 161 rows. At x = -5 the value is 25 minus 4, which is 21, and at x = 0 it is -4. The curve is a U shape.

Kjørt med verktøyets egen kode.

A straight line

Du skriver inn
Koeffisienter
2,1
Minimum x
0
Maksimum x
4
Prøvepunkter
40
Du får
Rader
41
Første
0,1
Andre
0.1,1.2
Siste
4,9

Two numbers mean 2x + 1. The x step is 4 divided by 40, which is 0.1, so the second point is (0.1, 1.2) and the last is (4, 9).

Kjørt med verktøyets egen kode.

A cubic through the origin

Du skriver inn
Koeffisienter
1,0,-3,0
Minimum x
-2
Maksimum x
2
Prøvepunkter
40
Du får
Rader
41
Første
-2,-2
Midten
0,0
Siste
2,2

Four numbers mean x cubed minus 3x. At x = 2 the value is 8 minus 6, which is 2, and at x = -2 it is -2.

Kjørt med verktøyets egen kode.

Too many coefficients or too few points

Du skriver inn
Koeffisienter
1,2,3,4,5,6
Minimum x
-1
Maksimum x
1
Prøvepunkter
40
Du får
Melding
Use 1–5 finite coefficients, an increasing x range and 40–400 plot points.

Six coefficients would be a fifth power, which is over the limit. The same message appears for a flat or reversed x range, for 39 points, or for a text such as x^2.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Check the rough shape of a quadratic or cubic from your homework.
  • See how changing one coefficient moves or bends the curve.
  • Copy a list of x,y values into a spreadsheet to plot or check.
  • Show students how a polynomial's degree changes its graph.

Begrensninger

  • Only polynomials with 1 to 5 coefficients are accepted, which means a degree up to 4. There is no sin, log, division or brackets, and a text formula is rejected.
  • The picture fits the highest and lowest points of your sample to the box, so the x and y scales are not equal. The two faint lines through the middle are fixed in place, are not the true axes, and there are no tick marks or numbers.
  • The tool plots sampled points joined by lines. It does not find roots, turning points or where two graphs cross, so a narrow peak between samples can be missed.
  • It stops if a value goes above 1,000,000,000,000 and asks you to narrow the x range. The x range can span at most 1,000,000.

Tips

  • Include a 0 for every missing power, such as 1,0,-4 for x squared minus 4.
  • Read the exact numbers in the result list, because the drawing has no scale marks.
  • Narrow the x range around the part you want to see if the curve looks flat.

Vanlige spørsmål

Sobre Funksjonsgraftegner.

How do I enter a polynomial?

Type its coefficients from the highest power to the constant. For 3x squared plus 2x minus 5, type 3,2,-5. Separate them with commas, spaces or semicolons. A missing power needs a 0 so the places line up.

Can it graph sin(x) or other functions?

No. It plots only polynomials made from coefficients, up to degree 4. It does not read formulas or expressions, and anything that is not a list of numbers is rejected.

Why are there no numbers on the axes?

The drawing is simple and has no scale marks, and its two faint guide lines are always in the middle of the picture, not at x = 0 or y = 0. Use the result list to read the exact values.

What do the plot points do?

They set how many equal steps the x range is cut into, from 40 to 400. The result has one more row than that number. More points make a smoother curve but a longer list.

Why did I get an error about the range?

The minimum x must be less than the maximum, the span can be at most a million, and every value must stay below one trillion. Narrow the range or reduce the highest power if you see the message.

Is my input sent to a server?

No. The points are worked out in your browser and the page says nothing is uploaded. Copy the result list if you want to keep it, because it is not saved.

Hvordan bruker du Funksjonsgraf?

Skriv inn polynomkoeffisientene fra høyeste potens til konstantleddet, og velg deretter det synlige x-intervallet.

Lastes dataene mine opp til en server?

Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.