Powered by Starship v1.3

Tag: math

main page
PUMAC :D
Nov 22 2024
5:31 PM

today felt kinda surreal ngl

so my school is fake asf and is giving us the entire week of thanksgiving off.. as a result I had tests / inclass essays / projects due from literally every class yesterday and today :skull:

but anyway none of my classes had anything going on past noon + there were club events and stuff going on

this weekend im gonna be going to PUMAC with some friends - probably gonna absolutely throw but wtv

tags: math

AMC 12B
Nov 13 2024
3:52 PM

Definitely easier than 12A. I think I got 20 correct / 5 skip = 127.5 total :D

tags: math

AMC update
Nov 7 2024
8:38 AM

I think I got 108 pts (AC x16, WA x1)

Honestly not terrible, I'll take it.

tags: math

AMC 12 A
Nov 7 2024
8:12 AM

Took AMC 12 yesterday, it went ehhh

First of all, performance: I solved 17 questions, left the rest blank.. Overall I was limited on time, but there were also a rather large number of problems that I didn't know how to solve.

I do feel though that the problems were.. a lot less 'standard' than previous years? This might just be an artifact of my lack of comp math practice over the last year, but several people I have talked to seem to think the same.. And also, if so, this would probably be good for me seeing that I haven't properly practiced in so long that I forget most of the usual constructions...

Anyway, at the very least, this can serve as practice for the 12B :D

tags: math

"When wil calc BC ever be useful to me?"
Sep 11 2024
7:57 PM

Today, I was working on some 3d matrix projection stuff for some simulation, and needed a simple sin() approximation. Because I was writing this in a non-compileime CBAS segment, I didn't have access to <math.h>, and was too lazy to add builtin trig functions. That's when I remembered: calc has a pretty simple way to approximate complicated functions with polynomials!

Even better, I didn't need an approximation that would work over all input values of theta - only between -pi/2 and pi/2, so a taylor series to three terms did the trick:

...

read more

tags: programming math

The m in logn stands for magic
Jul 19 2024
10:22 PM

I swear binary exponentiation on matrices is actually magic.

While explaining this CSES problem to a friend, it occured to me that I could improve my O(n) solution, which used state machine DP, into a O(log n) one, by using matrix exp.

But even though I've used it quite a few times before, it still feels like magic. Take this task for example:

...

read more

tags: programming cses math

On multidimensional tic-tac-toe
Jul 5 2024
1:26 PM

I was shown this puzzle by @hy3na_xyz, a member of the Rutgers competitive programming discord server. Credit goes to them!

Given an N-dimensional tic-tac-toe board of side length L, how many winning paths are there? A winning path is a sequence of L cells that follow a linear path through the N-dimensional hypercube of the game board. ...

read more

tags: math