to change Function

Refresh

Stop

f(x)= Greatest Integer Function [x]

a project by
Benny Varghese
PGT Maths
JNV Pathanamthitta
Kerala

Functions - Graphs

x

y
f(x)

0

1

2

3

4

-1

-2

-3

-4

Graph

Choose the function using the slider on 
right “to change Function” Then click “Start Animation”.
Refresh or Stop can also be used .
Check box “Graph” to draw graph at once

how to proceed

To draw the graph of various functions

Start Animation

k(x) = 1 + (((((((x + 1) * (x + 1)) * (x - 3)) * (x - 2)) * (x + 2)) * (x - 1)) * x / 12)
j = Simplify(k)
v(x) = If[x < -5, -6, If[x < -4, -5, If[x < -3, -4, If[x < -2, -3, If[x < -1, -2, If[x < 0, -1, If[x < 1, 0, If[x < 2, 1, If[x < 3, 2, If[x < 4, 3, If[x < 5, 4, If[x < 6, 5, If[x < 7, 6, If[x < 8, 7]]]]]]]]]]]]]]
s(x) = (x^(2) + (5 * x) - 1) / (x^(3) + 2)
g(x) = 3
u(x) = sgn(x)
p(x) = x^(3)
r(x) = 1 / x
a = 0 (slider from 0 to 10, step 1)
t(x) = abs(x)
h(x) = x^(2)
f(x) = x
A = Point(xAxis)
w = If(a ≟ 1, f, If[a ≟ 2, g, If[a ≟ 3, h, If[a ≟ 4, p, If[a ≟ 5, r, If[a ≟ 6, s, If[a ≟ 7, t, If[a ≟ 8, u, If[a ≟ 9, v, If[a ≟ 10, j]]]]]]]]])
b: x(A)
B: (b, w(b))
C: (0, y(B))
c = Segment(C, B)
d = Segment(B, A)
text1: "f(x)=" + (LaTeX[w]) + ""
D: (2, w(2))
E: (-1, w(-1))
F: (3, w(3))
H: (-2, w(-2))
I: (-3, w(-3))
J: (-4, w(-4))
K: (0, w(0))
G: (1, w(1))
L: (4, w(4))
O = (4, -1)
P = (14, -1)
R = (14, -3)
S = (4, -3)
poly1, o, p_1, r_1, s_1 = Polygon(O, P, R, S)
T = Point(o)
U = Point(r_1)
Z = Point(o)
A_1 = Point(r_1)
B_1 = Point(o)
C_1 = Point(r_1)
D_1 = Point(o)
E_1 = Point(r_1)
e = Segment(D_1, E_1)
i = Segment(B_1, C_1)
l = Segment(T, U)
F_1 = Point(o)
G_1 = Point(r_1)
m = Segment(F_1, G_1)
H_1 = Point(o)
I_1 = Point(r_1)
n = Segment(H_1, I_1)
V = Point(s_1)
W = Point(p_1)
q: y(K)
a_1: y(G)
b_1: y(D)
c_1: y(H)
d_1: y(E)
e_1: y(F)
f_1: y(I)
g_1: y(L)
h_1: y(J)
text6: "" + q + ""
text17: "" + a_1 + ""
text18: "" + b_1 + ""
text19: "" + c_1 + ""
text20: "" + d_1 + ""
text21: "" + e_1 + ""
text22: "" + f_1 + ""
text23: "" + g_1 + ""
text24: "" + h_1 + ""
M = Point(o)
J_1 = Point(r_1)
i_1 = Segment(M, J_1)
K_1 = Point(o)
L_1 = Point(r_1)
j_1 = Segment(K_1, L_1)
Q = Point(o)
M_1 = (13, -3)
k_1 = Segment(Q, M_1)
text25: "f(x) = " + (LaTeX[j]) + ""
l_1 = false
aim: false
hp: false