Symbolic Algebra & Charts

← All samples

symbolic-algebra.dply
1---
2version: 0.1.0
3precision: 4
4---
5# draftply Pro — Symbolic Algebra & Charts
6
7# Solve equations
8solve(x^2 - 4, x)
9solve(2*x + 3, 7, x) # solves 2x + 3 = 7
10
11# Simplify & factor
12simplify(2*x + 3*x)
13factor(x^2 - 9)
14
15# Calculus — symbolic derivatives
16diff(x^3 + 2*x, x)
17diff(sin(x) * x^2, x)
18
19# Numeric derivative at a point, and a definite integral
20diff(sin(x), x, pi / 4)
21integrate(sin(x), x, 0, pi)
22
23# Charts — open the file in draftply to see them rendered live
24plot(sin(x))
25plot(x^2, -5, 5)
26scatter([1, 2, 3, 4, 5], [2, 4, 5, 4, 6])
27