# How to write a cubic function equation

Okay, so this is I could say delta function day. Introduction In OpenGL, we can display a texture to small or large area. Displaying a texture in the same size requires copying all texels texture units to output pixels. If we want to create a large image from a small texture, OpenGL has to create many intermediate pixels.

This process of creating intermediate pixels is called as Interpolation. OpenGL provides two interpolation methods to create a large texture image. In addition to OpenGL interpolation types, here different versions of Bi-Cubic interpolation are implemented in pixel shaders. Bi-Cubic interpolation can provide good quality image on creating large image from small textures.

Screenshot of ZoomInterpolation Application. Small area of flower is zoomed with different interpolations. Different versions of interpolation have quality difference. Details of different interpolations are explained in the below sections. Background Interpolation is a "Process used to estimate an unknown value between two known values by utilizing a common mathematical relation".

## Eleventh grade Lesson Graphs of Cubic Functions | BetterLesson

ZoomInterpolation creates zoomed image with different interpolation types. OpenGL provides a Bi-Linear interpolation at its maximum. When zooming a very small texture area to large area, Bi-Linear provides a less quality. Bi-Linear interpolation creates an intermediate pixel with the help of nearest 4 pixels.

Bi-Cubic interpolation, a high quality version, creates an intermediate pixel with the help of nearest 16 pixels.

## Cubic function - Wikipedia

In the nearest interpolation, intermediate pixels are created with the nearest valid pixel. This kind of interpolated images are blocky since same data is copied to intermediate pixels. Edge of the flower seems to be a "stair case". We can remove this stair case through better interpolation methods.

We can use following code to achieve nearest interpolation in OpenGL fixed function pipeline. Therefore it is called Bi-Linear interpolation. Here "stair case" effect is not visible. But we can see a shade of yellow and green through the edge of flower, and a small "stair case" is visible at some edges of the flower.Let f(x) be the cubic function.

Then, we will write the function into the standard format: f(x) = ax^3 + bx^2 + cx + d. Now to dteremine a,b,c,and d values, we will subsitute the points given. Which five Google technologies would you like to research for your Final Case Studies?