The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
Apr 5 12:57
I am mostly werewolf
normal 🟥🟥🟥🟥
abnormal 🟩🟩
werewolf 🟫🟫🟫🟫
Get your own score at https://mousetail.github.io/how-normal-am-i
Jun 28, 2021 13:28
^^ and also half the golfing languages out there :P
Apr 28, 2021 18:39
yoo @hyper-neutrino!
Apr 4, 2021 21:17
@OriginalOriginalOriginalVI Hi there! πŸ‘‹πŸ‘‹πŸ‘‹
Jan 23, 2021 01:06
Hi! (hmm I only received the ping I don't recall entering the chatroom idk how that happened lmao)
Dec 31, 2020 22:51
Wishing y'all a happy new year! <3
Dec 31, 2020 22:50
@ngn haha we have the equivalent "horă" as well
Dec 24, 2020 22:34
@cairdcoinheringaahing Hi there, and merry Christmas! :-)
Sep 23, 2020 23:06
@HyperNeutrino Oh okay thanks a lot!
Sep 23, 2020 22:47
I don't really remember, iirc it was from "room" dropdown but not sure at all
Sep 23, 2020 22:36
If I forget and you notice feel free to ping
Sep 23, 2020 22:36
Yeah I'll do that tomorrow as well
Sep 23, 2020 22:34
Yeah I should clear those sorry
Sep 23, 2020 22:34
> jesus that is a lot of stars
Sep 23, 2020 22:31
I guess we were right
Sep 23, 2020 22:31
Did we?
Sep 23, 2020 22:31
Right
Sep 23, 2020 22:30
Might give it a try tomorrow if I don't forget about it immediately
 

 Problem Solving Strategies

General chat for high school physics. For MathJax see meta.sta...
Nov 2, 2021 14:04
With r-Rcos(theta) as the first function and sin(theta)/(...)^(3/2) as the other
Nov 2, 2021 14:03
Oh wow it actually works though integration by parts
Nov 2, 2021 13:57
And wolfram does it without approximating
Nov 2, 2021 13:57
At least not for Gauss' law, the result is exact
Nov 2, 2021 13:57
Doesn't seem like it
Nov 2, 2021 13:27
Which is verified by Gauss' law
Nov 2, 2021 13:27
If you plug the integral into Wolfram it will correctly yield GM/x^2 for R<x
Nov 2, 2021 13:26
@Wolgwang Except for the fact that you're missing a surface density factor $M/(4\pi R^2)$, yes, it seems correct to me
Nov 1, 2021 19:33
@Bohemianrelativist glad I could help!
Nov 1, 2021 19:13
I don't think I can help with that xD
Nov 1, 2021 19:13
@Bohemianrelativist wow that's quite complicated
Nov 1, 2021 17:03
So you just rewrite everything into what form you want
Nov 1, 2021 17:02
@Bohemianrelativist Yes. It follows quite logically (if you think about known integrals, the only plausible one that has a 1/(something^2+something else) is the arctan)
Nov 1, 2021 15:57
If the middle step isn't clear here's the full derivation: $dt/dr=1/\sqrt{-M^2+Q^2}$ and
$$(2M^2-Q^2)\int\frac{1}{(r-M)^2-M^2+Q^2}dr=(2M^2-Q^2)\int\frac{1}{(-M^2+Q^2)t^2-M^2+Q^2}\sqrt{-M^2+Q^2}dt=\dfrac{2M^2-Q^2}{\sqrt{-M^2+Q^2}}\text{arctan}(u)$$
Nov 1, 2021 15:51
since $\text{arctan}'(x)=1/\sqrt(1+x^2)$ this gives $$\dfrac{2M^2-Q^2}{\sqrt{-M^2+Q^2}}\text{arctan}(t)$$$$\dfrac{2M^2-Q^2}{\sqrt{-M^2+Q^2}}\text{arctan}(\sqrt{(r-M)^2/(-M^2+Q^2)})$$
Nov 1, 2021 15:49
It's a standard constant/second degree polynomial integral, you can complete the square: $$(2M^2-Q^2)\int\frac{1}{r^2-2Mr+Q^2}dr=(2M^2-Q^2)\int\frac{1}{(r-M)^2-M^2+Q^2}dr$$ and then it's an arctan integral if you let $t^2=(r-M)^2/(-M^2+Q^2)$ you'll get $$\dfrac{2M^2-Q^2}{\sqrt{-M^2+Q^2}}\int\frac{1}{1+t^2}dt$$
Nov 1, 2021 15:42
There's an M in front of the logarithm though, be careful
Nov 1, 2021 15:42
Yea, exactly
Oct 31, 2021 21:29
But i don't think the result's gonna be pretty
Oct 31, 2021 21:28
you could manipulate it to $2Mr-Q^2=M(2r)-Q^2=M(2r-2M+2M)-Q^2=2M(r-M)+2M^2-Q^2$. Then you should split into two fractions, the first will give the logarithm integral, the second will be constant/second degree polynomial with has a formula or can be done quite simply by completing the square and forming an arctan
Oct 31, 2021 21:28
Well as it's a fraction you could take the derivative of the denominator and see that it's $2(r-M)$ because you want to form an integrand of the type $f'/f$ which integrates to $\ln f$. So to form $2(r-M)$ in the numerator
 

 Jelly Hypertraining

Practice your Jelly :) Rules and stuff are here: golfingsucces...
Sep 28, 2021 17:59
@cairdcoinheringaahing cuz now the non-uk costs for the top unis (only ones worth applying to abroad, of course) are like over 20 30k and i feel like it's too much of a hassle to try to get the very few grants available (and i wouldn't spend that much on my undergrad)
Sep 28, 2021 17:57
@cairdcoinheringaahing daaamn good luck bro!
Sep 28, 2021 17:40
How about you?
Sep 28, 2021 17:39
@cairdcoinheringaahing Going well overall, in terms of school and like social life, but I'm kinda tired :) currently looking for Uni opportunities and I'm kinda frustrated that all the options in the UK are now sort of ruled out for me, but I'll figure it out
Sep 28, 2021 11:02
hi
Jan 25, 2021 16:18
You're almost there, though! Hint: Look for a quick that forces monads to behave in some way
Jan 25, 2021 14:26
Oh πŸ˜…, great then, turns out I was inspired to check today
Jan 25, 2021 11:19
Welcome, @user! If you requested access a long time ago, sorry for the delay, I didn't check the requests in a while.
Dec 6, 2020 06:48
@Lyxal Updated.
Dec 5, 2020 23:29
antifreeze.
Oct 17, 2020 12:04
@cairdcoinheringaahing I think it can't hurt (although it probably won't be incredibly active), so +1 from me