Skip to content

Code vs Symbolic Representation

Unlike other programming languages, Arithmo is focus to solve derivatives without the need of structuring your own fuctions this is beacuse Arithmo provides a library that do the work for you. 🥃

For example, to calculate the derivate of a trigonometric function in python, you need to import libraries as cmath or math, or if you need to calculate a polynomial derivative, you need import two more libraries, like simpy, then, if you need calculate de derivative of a sum of a combination of a polinomial and a trigonometric function, you need to import three libraries and structure a function to do the sum; but with Arithmo you only need a library and use its function.

Example

If you need calculate the sum of the derivate of the functions sin(x) and x^2 using pyhton, you must write a code like this:

import simpy as sp
import math as mt
f = mt.sin()
x = sp.symbol('x')
g = x**2
g_der = sp.diff(g,x)
trigonometric_der = {mt.sin(): mt.cos(), mt.cos(): -mt.sin(), mt.tan(): mt.csc()**2}
f_der = trigonometric_der(f'{f}{x}')
sum_der = f_der + g_der
print(sum_der)

But if you use Arithmo, you only need to write the next code:

deriv_gen(sum,x,sin,[0,0,1]);
Output
cos(x)+0x^0+2x^1

which represent the next function and its derivative

f(x) = sin(x)+ x²
f’(x) = cos(x) + 2x¹

And in case you need calcualte the product, quotient or use chain’s rule, in a language like python, you need create a diferent function for any method. But with Arithmo all of this methods are in the function deriv_gen.

Instructions

deriv_gen of Arithmo receives the follow parameters:

deriv_gen('method','variable','function 1', 'function 2', *'constants');

where

  • method: is the method to use, it can be sum, product, quotient or chain
  • variable: is the variable of the function
  • you can write only two functions, include
    • trigonometric : sin, cos, tan, csc, sec, cot
    • logaritmic: exp, log
    • polinomial: this is an array [] with max three parameters
  • constants: this is an array [], too, but is necesary only three parameters; in case you don’t need constants, this have the predeterminate value of 1.

* We are working for you can introduce more than two functions and constants, and other types of function, like absolute value, and methods like implicit derivative
directional derivative, critical points, value of a derivative in a point, a grapher and we are working in a playground in the website…⚒️