Questions tagged [calculus]
Use this tag for challenges involving integration or differentiation of functions.
35
questions
6
votes
12
answers
946
views
Argument of a complex number (Robbers)
V1.1: Added criterion to help with tiebreakers, a bit overkill but still.V1.2: It's April 15th!
Task: Crack the scrambled code for calculating the argument of a complex number \$z=x+iy\$ given two ...
11
votes
23
answers
2k
views
Argument of a complex number (Cops)
This is the cop's thread, where one should post the scrambled code. Here is the robbers' thread where the cracked source should be posted and linked to the cop's answer.
NB: I am currently writing up ...
33
votes
43
answers
3k
views
Derivative of a product
In calculus, the derivative of a mathematical function defines the rate at which it changes. The derivative of a function f(x) can be marked as ...
6
votes
3
answers
369
views
Plot Slope Fields Given Differential Equation
Slope fields or direction fields, are a graphical representation of the solutions to a first-order differential equation of a scalar function. A slope field shows the slope of a differential equation ...
8
votes
20
answers
819
views
Trapezoidal Riemann Sum
Given a list of coordinate pairs, output the Trapezoidal Riemann Sum of the values given between the first and last x-coordinates.
You will be given a sorted list of coordinate pairs, like this:
...
14
votes
14
answers
1k
views
Definite integral of polynomial functions
You will need to evaluate the definite integral (bounded by \$a\$ and \$b\$) of a certain polynomial function that takes the form of:
$$\int_a^b \left( k_n x^n + k_{n-1} x^{n-1} + \cdots + k_2x^2 + ...
12
votes
18
answers
1k
views
Polynomial Laplace transform
This is a repost of this challenge, intended to revamp it for looser I/O formats and updated rules
You are to write a program which takes an integer polynomial in \$t\$ as input and outputs the ...
15
votes
5
answers
995
views
Solve a separable differential equation
A first order separable ordinary differential equation is (arguably) the easiest type of differential equation to solve, and takes the form of
$$N(y)\frac{dy}{dx} = M(x) \\
y(x_0) = y_0$$
For two ...
8
votes
6
answers
367
views
String-wise calculus (i)
This will turn into a series involving other aspects of calculus, including using the "derivative" of a string to find "stationary points" etc, as well as "integration" of sentences
Introduction
If ...
8
votes
0
answers
546
views
Goldbach's Comet
Back to back challenges I guess. Hopefully this one is more clear than the last.
Background
I was playing around with Goldbach's conjecture, and decided to plot evens (on the x-axis) vs the number ...
9
votes
6
answers
375
views
Simplify and Take Partial Derivative to a Polynomial String
Introduction
Write a program to calculate the partial derivative of a polynomial (possibly multivariate) with respect to a variable.
Challenge
Derivatives are very important mathematical tools that ...
14
votes
11
answers
4k
views
Find The Local Maxima And Minima
Definition
The maxima and minima of a given function are the largest and smallest values of the function either within a given range or otherwise within the entire domain of the function.
Challenge
...
18
votes
10
answers
2k
views
Approximate definite integrals using Riemann sums
Left and right Riemann sums are approximations to definite integrals. Of course, in mathematics we need to be very accurate, so we aim to calculate them with a number of subdivisions that approaches ...
6
votes
7
answers
502
views
It's a Slippery Slope
There has not been a challenge regarding slope fields, as a far as I can tell. So, I might as well make one.
The challenge
Given:
A black box function f which ...
15
votes
10
answers
2k
views
The Lehmer-Comtet sequence
The Lehmer-Comtet sequence is a sequence such that a(n) is the nth derivative of f(x) = xx with respect to x as evaluated at x = 1.
Task
Take a non-negative integer as input and output the nth term ...