« first day (631 days earlier)      last day (1738 days later) » 

2:30 PM
CMC: Given two 3d vectors, output their cross product
Examples: (1, 2, 3) x (4, 1, 5) -> (7, 7, -7) and (-1, 1, -3) x (1, 2, -9) -> (-3, -12, -3)
 
 
4 hours later…
6:18 PM
@cairdcoinheringaahing Do you have a reference solution? If so, would you mind revealing the byte count?
 
@Mr.Xcoder No, I haven't solved it yet
 
6:33 PM
@cairdcoinheringaahing Are we allowed to choose the output order arbitrarily or must it be exactly in the form (x,y,z)?
 
@Mr.Xcoder The input and output order may be in any order, but must be consistent
 
6:52 PM
@cairdcoinheringaahing 5 bytes; Takes input as [[x1,x2],[y1,y2],[z1,z2]]; 8CDC5EB92CA719E12BDFB3DFC7654FE4
 
@Mr.Xcoder Wow, that's short
 
The challenge has a really beautiful symmetry that helps a lot
 
 
3 hours later…
9:55 PM
@cairdcoinheringaahing SPOILER! Here is an explanation in case it's not clear
 
@Mr.Xcoder Cool! Just an FYI, you're missing the close bracket in "and (x2, y2, z2 be the""
 
I just updated that but it's not synced on GH yet.
 
Yep, just reloaded :P
 
Editing can be rather annoying when working with PDFs
Sighs, I'm missing a word
 
That is quite a cool method for the cross product. Didn't see it on Wikipedia as well
 
10:00 PM
Well, I just noticed that relation by deriving the formula
Actually trying to deduce the formulas on your own gives you some insight especially on mathy challenges
 
Not sure my maths level is good enough for most challenges :P
 
I'm very annoyed at the syllabus here.
You need some maths in physics that you'll study 2 or 3 years later in maths...
And then knowing things in advance makes you hate math classes because they're boring...
Sighs
 
@Mr.Xcoder We kinda have that here, but you don't need to know how to integrate/differentiate, you can just use tangents and approximation
 
Well, that's the case here too in school but you definitely need integrals and derivatives in particular and also some linalg for contest level
 
@Mr.Xcoder What part of linalg is used in physics?
 
10:07 PM
Well, surprisingly the determinats-part-ish.
I'll give you an example
I'm not sure I can give you a concrete non-convoluted example but it's used heavily in rotational + collisions mechanics and usually the more advanced problems which involve things like moment of inertia and that sort of stuff are likely to involve linalg, General Relativity also requires linalg knowledge
And sometimes it's just easier to work with matrices because it eases calculations
 
@Mr.Xcoder If we do any of that at school here, it will definitely be next year, if at all
 
Well, I hope you'll enjoy it
Still 2 years to wait before I get to learn linalg in maths
:(
 
@Mr.Xcoder Hopefully
@Mr.Xcoder We finished our first matrices topic at the end of 2018, mainly covered the basics and determinants of 2x2 matrices
Nothing too complicated
 
@cairdcoinheringaahing What grade exactly?
 
@Mr.Xcoder UK year 12, so I think 11th grade. Second to last year of school, ages 16-17
 
10:18 PM
I see, grade 11 is precisely the same year linalg is done here (as well)
 

« first day (631 days earlier)      last day (1738 days later) »