Questions tagged [calculus]

Calculus is the study of change of one or more variables with respect to another variable. Calculus has two main operators: differentiation and integration. Differentiation can be used to study the change of one variable with respect to another. Integration can be used to find the area bounded by a function.

Calculus plays an important role in computer science, for example, in the comparison of the performance of various algorithms and the complexity of various problems. These are often expressed using big O notation, which relies on the idea of the limits of ratios of functions as a variable tends to infinity.

On the practical programming side, there are several fields that will require calculus to a greater or lesser extent:

  • Numerical analysis and computation.
  • Signal processing (Image, video, audio, etc).
  • Data analysis and prediction for business applications.
  • Modeling of dynamical systems.
  • Machine learning.
  • Physics engines for video games.
580 questions
-2
votes
1 answer

SAS how to sum even if there are missing value?

This is my data, let me call it 'time'. VAR1 VAR2 VAR3 VAR4 02NOV14:10:23:00 02NOV14:10:38:00 02NOV14:10:38:00 02NOV14:12:52:00 02NOV14:13:05:00 02NOV14:18:57:00 02NOV14:19:14:00 02NOV14:19:14:00…
HPatrice
  • 1
  • 2
-2
votes
1 answer

Calculus with Constants

An electric current, I, in amps, is given by I=cos(wt)+√(8)sin(wt), where w≠0 is a constant. What are the maximum and minimum values of I? I have tried finding the derivative, but after that, I do not know how to solve for 0 because of the…
Davido Widre
  • 185
  • 2
  • 13
-2
votes
2 answers

hello, I am trying to write a simple program in python that will calculate the derivative of a polynomial function

I am trying to write a simple program that will calculate the derivative of a polynomial function. Here is what I have. It may not be pretty, but for some reason the for loop is not iterable (whatever that means). def main(): n =…
-2
votes
1 answer

Update column if calculation on two other select is greater than

Well, that's hell of a question. Here is in a way what I would like $result = mysql_query(" SELECT (less, more) FROM tempTable WHERE id = '$id' "); $row = mysql_fetch_row($result); if( ($row[1] - $row[0]) / 75 <= 1.5 ) { …
user3316068
  • 47
  • 1
  • 3
-3
votes
1 answer

string subscript out of range error when assigning variable to function

In order to become more familiar with cpp I began making a program that takes the derivative of simple polynomials using the power rule. So far, it is working fine for polynomials such as 5x^2+4x. However, if the polynomial contains a constant (like…
num3rical
  • 1
  • 2
-3
votes
4 answers

A function generating the derivative of f

I´m trying to construct a function that return the derivate of f, a function of one variable. The return value should be a function approximating the derivative of f' using the symmetric difference quotient, so that the returned function will…
Alexander West
  • 81
  • 1
  • 1
  • 9
-4
votes
1 answer

How to integrate following function in R?

I am not able to integrate this function. I am getting an error: argument "y" is missing, with no default. The answer to this problem is 1.
Amish Sharma
  • 196
  • 2
  • 12
-5
votes
2 answers

Calculate a function with smallest relative error

I need to create a program in Java to calculate the function: cbrt(1+x²)-x With the smallest relative error. But I have no idea the logic for this, can anyone help me? (Sorry for my poor English)
-8
votes
1 answer

Taking derivative of a function

I have function and need to take partial derivatives respect to its two variables. The function is: Since I am not really good at math, I need some help to know the following derivatives:
mgokhanbakal
  • 1,679
  • 1
  • 20
  • 26
1 2 3
38
39