Cody

Rafael Siqueira Telles Vieira

134
Rank
28
Badges
5365
Score
1 – 50 of 663

Rafael Siqueira Telles Vieira submitted a Comment to Problem 564. How to subtract?

Mark Sanderson, if W > 0 Z = ['+' ...]

8 minutes ago

Rafael Siqueira Telles Vieira submitted a Comment to Problem 564. How to subtract?

actually each of them has 14 characters or less...15 if we count the signs.

13 minutes ago

Rafael Siqueira Telles Vieira submitted a Comment to Problem 44314. A Simple Tide Gauge with MATLAB

We can use derivatives for predicting the high tide (diff) when we can assume that a function is increasing or decreasing (even with some noise).

3 hours and 22 minutes ago

Rafael Siqueira Telles Vieira submitted a Comment to Problem 44334. Sums of Multiple Pairs of Triangular Numbers

The first test case is wrong 0 and 21 are triangular numbers too (https://oeis.org/A000217), therefore: multi_triangular(21) [ 0, 6; 21, 15] PS: And 0 does not make a pair with every number in this case.

4 hours and 33 minutes ago

Rafael Siqueira Telles Vieira submitted a Comment to Problem 44372. Polarisation

Tip: In this problem, the first polarizer is always equated to 0.5 (since I_0 = 1 and the light comes from all directions): we should calculate the integral of the function cos(x)^2 from 0 to 2pi divided by 2pi (Mean Value Theorem). The remainder is Malus's Law.

5 hours and 25 minutes ago

Rafael Siqueira Telles Vieira submitted a Comment to Problem 44370. Octoberfest festival

Good problem, but you could add more test cases, like n = 0, which should be 1. And a higher n, 144, which should be much greater than 2 billion beers (after 3 days straight at Octoberfest, wow). Unfortunately, It is impossible to calculate the beer for all 16 to 18 days within machine precision.

10 hours and 3 minutes ago

Rafael Siqueira Telles Vieira submitted a Comment to Solution 1397486

The problem is solvable by coding (check my solution). Although a solution with no code is also possible...

15 hours and 36 minutes ago

1 – 50 of 663