Questions tagged [equation]
For challenges involving equations, in one or more variables.
8 questions
8
votes
28
answers
2k
views
"Graphing" calculator
Kinda a short one, but yeah.
Y=MX+C is the equation we all learnt to represent a line... But can you Code Golf it?
Write a program that takes in a list in the ...
17
votes
21
answers
1k
views
Infer pluses and minuses
The problem
Consider an equation such as "3 ± 2 ± 4 ± 1 = 4" and determine if there exists a sequence of pluses and minuses that makes it arithmetically correct. If it exists, ...
23
votes
10
answers
2k
views
How many ways to cut a number into an equation?
Too bad! I had such a beautiful equation, but I lost all my =+-*, so there is nothing left but a chain of digits, looking like a number: ...
10
votes
5
answers
535
views
Valid term from quadratic sequence?
You are given four numbers. The first three are \$a\$, \$b\$, and \$c\$ respectively, for the sequence:
$$T_n=an^2+bn+c$$
You may take input of these four numbers in any way. The output should be ...
3
votes
2
answers
91
views
Generate lowest degree polynomial from sequence [duplicate]
Introduction
A sequence of numbers is passed in as the input. The program has to generate the lowest degree polynomial possible. This was my first programming project in college and it would be ...
16
votes
15
answers
762
views
Transitive Equality
The Challenge
Your program should take 3 inputs:
A positive integer which is the number of variables,
A set of unordered pairs of nonnegative integers, where each pair represents an equality between ...
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
...
20
votes
17
answers
2k
views
Find Integral Roots of A Polynomial
Challenge
The challenge is to write a program that takes the coefficients of any n-degree polynomial equation as input and returns the integral values of x for which the equation holds true. The ...