Calculation function values
calcvalues(func, value start, value finish, density, variable)
where:
func - the function to calculate
value start value and value finish - the start and end point of the calculation
density - change step variable variable(which takes a string value and indicates the variable involved in the calculation)