房山“画说圣地?堂上飞歌”美术作品创作动员会召开
百度 李建国说,要适应职工群众对美好生活的向往,把服务职工工作做得更具体更扎实更温暖。
The challenge involves mathematics in some central way. Also consider using more specific tags, listed in the tag wiki info.
1,866 questions
13
votes
7
answers
1k
views
Squaring the roots of a polynomial
In this challenge, you are given a polynomial \$p(x)\$, and you need to find a polynomial \$q(x)\$ whose roots are exactly the squares of the roots of \$p(x)\$ (counted with multiplicity). In other ...
1
vote
1
answer
244
views
The Parable of the Dagger Prelude
Taken from lesswrong.com
Once upon a time, there was a court jester who dabbled in logic.
The jester presented the king with two boxes. Upon the first box was
inscribed:
"Either this box ...
24
votes
6
answers
2k
views
Computing Pi with iF*ck
Objective
Compute \$\pi\$ using nothing but \$i\$ (\$\sqrt{-1}\$).
Guidelines
ONLY exponentiation and multiplication may be used (i.e. \$i^i\$ or \$ii\$)
No additional symbols may be used (so no ...
5
votes
10
answers
1k
views
Genshin Elemental Aura Decay
There is this game Genshin Impact, when an element is applied to an enemy i.e. Electro it remains for some time causing decay to the enemy health. For this challenge, we'll simplify this to a single ...
9
votes
3
answers
599
views
Intersection check in the fewest operations
Challenge
Given two line segments, your goal is to write a function which determines if they intersect using only the operations given below:
Multiplication: x*y
...
6
votes
17
answers
1k
views
555 Timer Calculator
The Challenge
In honour of getting 555 Rep, here's a little challenge to work out the frequency of a 555 Timer. The frequency can be worked out using
$$ f=\frac{1.44}{(R_1+2R_2)C_1} $$
Implement this ...
-4
votes
12
answers
291
views
Power Grid Management
You are writing the management software for one "node" of a power grid. A node has a layout like this
+
|
+---N---+
|
+
Each + is a ...
4
votes
8
answers
849
views
How many distinct characters can be used to implement Boolean Algebra in your programming language [closed]
I am interested in the following problem:
What is the minimum number of distinct characters used in any programming language that can implement Boolean Algebra?
In particular, what is the set that ...
8
votes
4
answers
470
views
Ultra-modular representative of rational numbers
Objective
Given a reduced fraction \$p/q\$ where \$q > 0\$, output the (unique) reduced fraction \$p'/q'\$ such that:
\$p'\$ is nonnegative and less than \$q'\$, and
\$q'\$ is a positive odd ...
-10
votes
2
answers
263
views
Fizz-Buzz-Bazz-Pazz
Fizz-Buzz-Bazz-Pazz
Problem Summary
Write a program that prints numbers from 1 to 100 with replacements based on the following ...
-3
votes
5
answers
266
views
Shortest Inverse Square Root [duplicate]
Alex ([email protected]) So... uh, thanks for covering me last time. Look, we've had a pretty odd order from a client, but they're willing to pay a TON to ...
11
votes
5
answers
812
views
Show order equivalence between the rationals and the binary fractions
Write a function \$f\$ which takes rational numbers and gives binary fractions (rational numbers whose denominator is a power of two) which is bijective and preserves order.
That means:
Different ...
16
votes
17
answers
3k
views
Noise Cancelling Headphones
Alex ([email protected]) Hey champ, we've just had a huge order for those new noise-cancelling headphones we're meant to be making. Unfooooorrttunately... ...
8
votes
1
answer
345
views
Ruler-and-compass constructions
In this code-golf challenge, you will work with a construction that was used by the ancient Greeks: the straightedge-and-compass construction. In particular, you will count how many different ...
3
votes
1
answer
245
views
Count number of families of sets satisfying a list of criteria
CHALLENGE
This problem has a math background.
For n=1,2,3,4 we want to count the number of families of sets with maximum n elements that satisfy many criteria of the form:
$$\bigoplus_{k\in A,A\in \...