Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Questions tagged [equation]

For challenges involving equations, in one or more variables.

Filter by
Sorted by
Tagged with
11 votes
29 answers
3k 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 ...
18 votes
22 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: ...
Philippos's user avatar
  • 2,688
10 votes
5 answers
594 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
133 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
872 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 ...
21 votes
17 answers
3k 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 ...

AltStyle によって変換されたページ (->オリジナル) /