« first day (2313 days earlier)      last day (2601 days later) » 

user228700
11:00 AM
I feel like perfectionism is making me entirely dysfunctional. All and any dubious advice is much appreciated.
 
In 100 years no-one will remember you ever existed, and specifically none of your mistakes will be remembered.
 
user228700
Haha, I use the prospect of death is quite the opposite way, really. My brain says "U've got only the one life, better make sure u make it as perfect as possible".
 
So while the young tend to find themselves crippled by the potential embarrassment of making a massive screw-up the old tend to think meh and carry on.
 
user228700
@JohnRennie I'm not so concerned about what other people think of me, actually. And I know this--it has been hammered in to my head over and over again; "Oblivion is inevitable" and all.
 
There is a really good book you should read by Kate Atkinson and called Life After Life
 
user228700
11:03 AM
Is it SF? If not, boy am I surprised :-P
 
It's about a girl who is reborn into the same life every time she dies.
 
user228700
Oh. God.
 
So whenever she makes a mistake she gets reborn and has another chance to not make the mistake next time.
 
user228700
That sounds like a terrible fate! :-o
 
She spends the whole book trying to live the perfect life by not making any mistakes, but she eventually realises that:
a) it's impossible to avoid making any mistakes - each life she just makes different mistakes
b) there is no such thing as a perfect life anyway
c) what matters is to live the life you've got and do your best to enjoy it
 
user228700
11:07 AM
That makes complete sense...objectively.
 
Well yes, but objectivity is rarely a quality of youth!
God it's terrible being young! :-)
 
user228700
I do know the facts, Sir. It's difficult to act in accordance with this is all.
 
user228700
It's crippling.
 
Look on the bright side, youth is a disease that you will recover from.
 
user228700
Sure sure, but I don't believe that this is a problem that will remain contained in my youth.
 
user228700
11:10 AM
I've had days upon days of un-productivity due to this menace.
 
user228700
It would be one thing to be a perfectionist and be able to function properly despite it. This is something else entirely--I am rendered completely dysfunctional!
 
I certainly don't want to make light of it, but I doubt you're that unusual in this respect. There's a spectrum from people who don't care to such extreme OCD that you end up in a strait jacket. We all fall somewhere on that spectrum.
 
user228700
This is probably bordering on OCD but to relieve myself of the anxiety caused by this stupid quest, I have to do certain nonsensical things.
 
Kurt Godel was so OCD he starved to death because he couldn't prepare any food he felt safe to eat.
 
user228700
@JohnRennie I agree, but I need to do something about this to be able to function properly.
 
11:15 AM
@JohnRennie I need C help
 
I'm reluctant to try and advise since I don't know anything about it. If I find myself getting a bit obsessional I generally look for distractions. Food works well.
@BernardoMeurer how can anyone need help with C? It's just about the simplest language there is :-)
 
user228700
@JohnRennie :-) No, distraction makes it worse actually. Thanks anyway. I appreciate it.
 
@JohnRennie I can't do these silly examples sometimes
I'm trying to implement some input safety
while (col < 'a' || col > 'h') {
    printf("Input a column (a...h)\n");
    scanf("%c", &col);
}
Like such
col is of char type
Input a column (a...h)
y
Input a column (a...h)
Input a column (a...h)
z
Input a column (a...h)
Input a column (a...h)
But this is happening
Interestingly enough the same behaviour does not happen for the check I wrote for integers later in the code
while (lin < 1 || lin > 8) {
    printf("\nInput a line (1...8)\n");
    scanf("%d", &lin);
}
where lin is some int
 
Hmm, I'm not a huge fan of the scanf function.
 
That one works fine
Yeah, neither am I but I don't remember how to use sscanf
I don't use IO
 
11:19 AM
What's wrong with gets or fgets ?
Then use the string conversion functions.
Actually I write my own string conversion functions for added safety.
 
It's just that scanf should work
and this is for a class assignment
I think scanf is reading the first character of then line "Input..."
and then looping
AH
 
I wonder if scanf is reading the \n
 
I gotta flush the buffer
Nope
 
What if you do: printf("Invalid entry %i: Input a column (a...h)\n", (int) col);
I'm away from home and this laptop doesn't have C installed so I can't easily check ...
 
Why would that help?
I hate IO
I like things to run quietly
 
11:28 AM
Because it will show you what scanf returned!
 
Ah
I have a debugger dood
lemme check
 
Ooh, the temptation to slap students ...
 
lol
bah
returned 105, "i"
which is what I had inputted
NOW THAT I AM DEBUGGING IT WORKS
Pesky bug
 
What happens if you use %1c instead of %c
I wonder if scanf is reading an int, writing four bytes into col and corrupting the memory.
If programs work fine in th debugger and crash when run normally that usually means a memory overwrite is happening.
 
Same bug
with %1c
 
11:32 AM
So what gets printed when you make the change I suggested and don't run it in the debugger?
 
@JohnRennie Heisenbug
 
:-)
Heap corruption - the cause of many, many wasted hours :-)
 
@AccidentalFourierTransform Yup. I figured that out. I also deleted that answer :D Surprisingly, there was one upvote and no downvotes. How did that go unchecked? lol
 
@JohnRennie ::grunts::
@JohnRennie If I make your change it works normally again
wat
 
3
Q: Difference between scanf("%c", &c) and scanf(" %c", &c)

passmaster10Consider the following C code snippet: #include <stdio.h> int main() { int a; char c; scanf("%d",&a); scanf("%c",&c); printf("int=%d\n",a); printf("char=%c\n",c); } I'm able to input only the integer and not the character.The output is simply the integer value and no v...

 
11:36 AM
Aha!
I added the space before
that's why it was working in the debugger
 
8 mins ago, by John Rennie
Ooh, the temptation to slap students ...
 
John Rennie is a programmer :O
 
I'm an (ex)scientist who programs.
 
I think everybody learns programming in UG freshmen course irrespective of their major I think
o0 exscientist lol
 
11:40 AM
Full time programmers are a different breed.
 
What do you program?
 
Mostly ASP/Visual Basic these days. I used to do mostly C++.
 
What in ASP/VB?
You meant you make websites using ASP where u use VB?
 
Good afternoon
 
@YashasSamaga See here
Last updated in 2008. Gosh how quickly time passes ...
 
11:43 AM
I wonder if all cloudy liquids are opalescent.
 
@CowperKettle no, opalescence is a critical phenomenon
 
@JohnRennie thank you! For some reason, in Pharmacopoeias there are articles about "degree of opalescence" where the word "opalescence" is seemingly treated as opposite to "being clear"
 
It occurs when a system is on the edge of a phase transition and there are long range crrelations appearing in th system.
 
I wonder why the pharmacopoeias use the word "opalescence" instead of "cloudiness" or "turbidity"
> A liquid is considered clear if its clarity is the same as that of water R or of the solvent used when examined under the conditions described above, or if its opalescence is not more pronounced than that of reference suspension I.
 
@CowperKettle it's entirely possible that the use of the word in physics is specific to physics. Other disciplines like pharmacology may assign it a different meaning.
 
11:46 AM
@JohnRennie ah, that's what I thought.
 
Critical opalescence is a phenomenon which arises in the region of a continuous, or second-order, phase transition. Originally reported by Charles Cagniard de la Tour in 1823 in mixtures of alcohol and water, its importance was recognised by Thomas Andrews in 1869 following his experiments on the liquid-gas transition in carbon dioxide, many other examples have been discovered since. The phenomenon is most commonly demonstrated in binary fluid mixtures, such as methanol and cyclohexane. As the critical point is approached, the sizes of the gas and liquid region begin to fluctuate over increasingly...
 
I was not sure. In Russian, we use the word "turbidity/cloudiness", and I was wondering why I must always translate it to English as "opalescence".
 
The word is also used for the scattering from oganised materials. Really this is a type of diffraction.
Opalescence is a type of dichroism seen in highly dispersed systems with little opacity. The material appears yellowish-red in transmitted light and blue in the scattered light perpendicular to the transmitted light. The phenomenon is named after the appearance of opals and is an example of the Tyndall effect. There are different degrees of opalescent behaviour. One can still see through a slightly opalescent phase. The larger the particles are, the stronger the scattering arising from them and the cloudier the particular phase will look. At a certain concentration the scattering is so strong that...
But I have never heard it used in physics to just mean cloudiness or turbidity.
 
> Primary opalescent suspension (formazin suspension).
To the solution of hexamethylenetetramine in the flask
add 25.0 ml of hydrazine sulphate solution. Mix and allow
to stand for 24 h. This suspension is stable for 2 months,
provided it is stored in a glass container free from surface
defects. The suspension must not adhere to the glass and
must be well mixed before use.
So this must be some quirkiness of pharma terminology. I see.
 
Will GR be overthrown just like Newton's laws were? (in the future)
 
11:56 AM
#include <stdio.h>

int get_color(int l, int c);

int main() {
    char col = '\0';
    int lin = 0;

    while (col < 'a' || col > 'h') {
        printf("Input a column (a...h)\n");
        fflush(stdin);
        scanf(" %c", &col);
    }

    while (lin < 1 || lin > 8) {
        printf("\nInput a line (1...8)\n");
        fflush(stdin);
        scanf("%d", &lin);
    }
    printf("This is a %s square.", (get_color(lin, col)) ? "black" : "white");
        return 0;
}

//Returns 0 for white, 1 for black.
Got em
 
Relying on remembering to include a space in the scanf is pants. I would use gets and parse the string using sscanf.
 
0
A: Magnetic pole strength of a solenoid

cliveThe equation involves the core material, permeability, and if I remember correctly, inductance, voltage and maybe current. I'll dig through my old notes and get back on this.

flag as not an answer?
or wait?
 
Tex has not worked sorry. Trying to fix. EDIT: Wow mods are too fast! — Beetroot 16 mins ago
I AINT NO MOD!!!
 
@JohnRennie This isn't production code, I just want to be done with this homework
Been compiling qt4 for so goddamn long
be done
plz
 
hey
12:20 PM
Hii @YashasSamaga
 
hi @hey o0
 
hey
Do you know chemistry
 
You need to ask the question first.
Asking "do know this subject" is a really vague question.
 
hey
Sorry
How can I upload a pic
 
:| There was no need to say sorry. You can upload a picture by clicking on the upload button on the right of the textbox.
 
hey
12:24 PM
There is upload button
 
hey
Is it due to reputation
 
Unless hey's on mobile
 
upload it to imgur.com/ and post the link here
that'll do it
 
hey
Ok
Is there any time limit due to low reputation
 
12:26 PM
yup
10
 
time limit to what?
 
not a time limit, but a reputation limit
 
hey
@YashasSamaga click it
 
ye I have seen that bug happening before
 
hey
Oh
 
12:33 PM
HBr reacts with NaOH to give NaBr + H2O
 
hey
Yes
 
but I think NaBr dissociates
 
uh said the man to the lady
uh said the lady to the man she adored
 
Hello
 
hey
@YashasSamaga ok then
 
12:34 PM
I am not good with this
Ask in the JEE prep room, everybody there must be revising these things.
 
hey
Okay
 

 Problem Solving Strategies

General chat for high school physics. For MathJax see [here](m...
 
During electrolysis of water,hydrogen is collected at cathode and oxygen at anode ,why? @YashasSamaga
 
Hydrogen is H+
it is positively charged
the electric field goes from positive to negative
 
hey
@YashasSamaga thanks
 
12:35 PM
or it goes from anode to cathode
the positive charges follow the electric field
negative charges go against the electric field
H+ goes to the cathode
oxygen, being negatively charged, goes to the anode
 
@YashasSamaga, why the charge follow such paths of electric field?
 
It is a property.
Electric field lines are said to start from positive charges and end at negative charges by convention.
field lines start from +ve and end at -ve
a +ve charge will want to go to the -ve
the field lines give the direction of the electric force
the +ve charge will follow the field line (unless it is moving way too fast)
 
@YashasSamaga, awesome
@YashasSamaga, 'Property of elements is the periodic function of atomic numbers ', what does it mean?
 
Are you doing your homework?
Isn't that statement one of the most important one?
You should open your textbook and jump to the lesson titled "Periodic table" or "Periodic properties of elements"
 
@YashasSamaga, this is the modern periodic law. But what does it mean?
 
12:50 PM
It tells that properties of elements vary with the atomic number.
H = 1s1
He = 1s2
Li = 1s2 2s1
Be = 1s2 2s2
B = 1s2 2s2 2p1
.
and so on
the number of electrons in a neutral atom is determined by the atomic number
 
@YashasSamaga, do we need to consider their perodicity or not?
 
chemical properties are main determined by the valence electrons
@LeonhardEuler the valence electron pattern are perodic
 
Yeah.@YashasSamaga
 
fully filled or half filled orbitals are very stable
all noble gases are stable
fully or half filled orbitals are stable becaz of the exchange energy
 
@YashasSamaga, do we have to explain about that,too?
 
12:53 PM
if you are preparing for high school exams, then it is probably out of the syllabus
do you have exchange energy, Schrodinger equation, black body, etc. in your textbook?
orbitals, probability distributions, nodes?
 
@YashasSamaga, I am preparing for class 10 board exam
 
then you definitely don't have it
you'll learn QM basics in your 11th grade
 
No, I don't have that stuffs.@YashasSamaga
 
there is time :)
 
1:46 PM
India is insane
@YashasSamaga o.o
 
what would you suggest?
 
2:04 PM
@skillpatrol no
 
0
Q: Unanswered question tab

RamanujanUnanswered question have answers in physics.se . Is it a bug or unaccepted answers also show up in this section?

 
@skillpatrol I've sold my soul to analysis
it doesn't feel good
 
it takes time
 
For what?
 
to feel good
 
2:19 PM
Has my search for Rigor gone too far?
 
nah
follow your heart
 
2:42 PM
(Removed)
I didn't see that one
 
some "follow your heart" shit
 
@0celo7 it is just the basics
@0celo7 plot of wave functions for uni electron atoms, probability distributions, shapes of orbitals, nodes, working with solutions of S.Eqn, double slit, black body, photoelectric effect, wave-particle duality, etc.
it is there so that other lessons can be understood
for example, we have solid state physics in 12th grade and that cannot be understood with that 11th grade QM foundation
they are so basic that 99% of the students make many conceptual errors
that includes me
JEE is even more crazy
 
3:04 PM
@AccidentalFourierTransform ah, well
he's an old woman
 
I would ban him for posting shit like that
 
Tay Tay!
 
🤓
 
3:13 PM
Who's that ugly girl?
and why on earth is her cloth made up of metals -_-
 
@0celo7 Oh well!
 
3:34 PM
Did you sign in blood?
 
He sold his soul.
When you sell your soul to the devil he makes you sign the contract in your blood. @YashasSamaga
 
3:50 PM
Hello
nice
 
howdy
 
4:06 PM
howdy doody
 
is there any particular name for the set of functions $f:\mathbb R^n\to\mathbb R$ such that $$\int\mathrm dx\ |x|^m |f(x)|^2<\infty\quad \forall m\in\mathbb N$$
 
Functions of finite moments?
kinda
 
hmmm yeah, I like that
 
I guess if you interpret $f$ as a probability amplitude it's a probability amplitude of finite moment, sort of
 
4:23 PM
no, $f$ is a letter
 
4:53 PM
@Slereah sounds good
 
I mean finite moments would be $x^m$ and not $|x|^m$
But that's the closest I can think of
 
Maybe those are Schwartz functions...
 
Schwartz functions do obey that relation
I don't know about the other way around
 
5:06 PM
@Slereah what does $x^m$ mean here? recall that $x\in\mathbb R^n$
anyway, anyone knows how $J^\pm|m\rangle=\sqrt{j(j+1)\pm m(m+1)}|m\pm1\rangle$ generalises for higher dimensions?
 
@AccidentalFourierTransform Higher dimensions? What?
 
yeah, $\vec J$ is the angular momentum operator in $d=3$ dimensions
for $d\ge 4$, $J$ has two indices, $J_{ij}$
and I cant find the representations of its algebra anywhere
so, basically I want the explicit realisations of the representations of $SO(d)$
I can only find the general theory, but no explicit expressions about the action of $J_{ij}$ on the vectors
if that makes sense
 
@Slereah I learned something from Yosida. A linear functional $T$ defined on $C_0^\infty(\Omega)$ is a distribution iff for every compact $K\subset\Omega$, there exists a postive $C>0$ and integer $k$ such that $$|T(\phi)|\le C \sup_{|j|\le k, x\in L}|D^j\phi(x)|,\quad \forall\phi\in\mathfrak D_K(\Omega).$$
 
If I am asking what are the observations for modified gravity (over dark matter), should I tag it as "research-level"?
 
No
that tag is pretty worthless
 
5:20 PM
I see. thanks
 
Research level questions are more physics overflow's deal
 
5:37 PM
My circuits professor is crazy
"I am planting several dozens of trees and flowers this weekend, and I hope you enjoy your weekend as well."
 
5:52 PM
@AccidentalFourierTransform Are you looking for angular momentum in 3+1 dimensions, or in 4+1?
but yeah, the SO(d) algebra is easy
 
@0celo7 Is he Spivak
Making a new book cover
 
The Maurer-Cartan forms are L_{AB} where A, B go from 1 to d and L_{AB} is antisymmetric in AB
then you have $dL_{AB} = L_{AC} \wedge L_{CB}$
The Lie algebra uses the same type of indices for the vectors X_{AB}
then you have $[X_{AB}, X_{CD}] = \delta_{BC} X_{AD} - \delta_{AC} X_{BD} - \delta_{BD} X_{AC} + \delta_{AD} X_{BC}$
Enjoy
 
@AccidentalFourierTransform you can find that in e.g. Zee's GR book
probably in his group theory book too
 
And in Cartesian coords, the vectors look like $X_{AB} = x^A \partial_{x^B} - x^B \partial_{x^A}$
Or possibly with an overall minus sign. I leave that to you.
 
you'd have to be pretty persistent to develop higher dimensional spin from just the commutation relations
 
5:59 PM
Probably. Did I not scroll up enough to see the original question?
 
he wanted explicit expressions for the reps
 
expressions of what?
 
representations of $\mathrm{SO}(d)$
 
yes, but I mean, what sort of expressions?
 
Now, I don't know if he wants group or algebra reps
@BenNiehoff Matrices I assume
@AccidentalFourierTransform explain!
 
6:01 PM
probably would be more efficient to learn how to build the reps from Young tableaux
 
I gave up physics because of Young tableaux
 
I finally learned them properly a few weeks ago
not all of the gritty details
But they're just a way to break down SO(d) tensors into irreps
 
I know
It's pretty horrible
 
If you asked me to obtain Clebsch-Gordan coefficients or something, I can't do that
 
I can do CG in $\mathrm{SO}(3)$ by hand, but I would hate you if you asked me to.
 
6:05 PM
Young tableaux aren't too hard, but finding out what coefficients they're supposed to have
That's the nasty part
 
Time to memorize perturbation theory up to second order
 
but why?
 
Is that @ me?
 
yes
 
I have an exam on it tomorrow
 
6:06 PM
he wants to perturbatize on the go
 
I hate perturbations of any kind, I try to avoid them :)
 
@Slereah This too. Who has time to analytically solve Hamiltonians while on the road?
 
did u know
you can use supersymmetry to solve some QM systems
 
"some"
do you mean systems that don't actually have SUSY?
 
I mean non-relativistic ones
 
6:10 PM
@Slereah You can use SUSY to derive Atiyah-Singer for a spin complex.
Of course it's all physicist math in the end
 
In theoretical physics, supersymmetric quantum mechanics is an area of research where mathematical concepts from high-energy physics are applied to the field of quantum mechanics. == Introduction == Understanding the consequences of supersymmetry has proven mathematically daunting, and it has likewise been difficult to develop theories that could account for symmetry breaking, i.e., the lack of observed partner particles of equal mass. To make progress on these problems, physicists developed supersymmetric quantum mechanics, an application of the supersymmetry (SUSY) superalgebra to quant...
that was supposed to be my thesis
 
Ah, sure, when you DO have SUSY, you can use it to make things easier :)
 
hopefully
 
usually it's highly constraining
 
It's possible that the dual system is worse
 
6:12 PM
I want to do a shitpost on the main site asking why physicist math works
Especially in QM
It's pretty amazing that quantum mechanics works
 
Seiberg and Witten famously used N=2 SUSY to reduce a certain class of QFT problems to simple complex analysis problems
QM is so weird, honestly
 
Simple for Witten or actually simple?
 
I wonder if in the end, my thesis advisor got another student to do that
 
simple for anyone who knows complex analysis :)
 
The climate wasn't very theory friendly
they didn't have a lot of money to give around
So it mostly went to LHC stuff and nuclear stuff
 
6:15 PM
@BenNiehoff that's a pretty broad field
Does Witten ever do technical analysis or is he a physicist in that regard?
 
ok, it reduces certain SUSY field theory problems to computing monodromies of some elliptic curve
technical analysis?
 
That doesn't sound easy to me
 
well, it's way easier than evaluating a path integral
and everyone loves geometrization!
 
7:12 PM
Ok, authors who don't have a symbol list should be shot
There's no excuse
Especially for reference texts
 
I will use the following symbols for this book : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, +, -, /, *
 
Who the hell uses $\mathfrak S$ for Schwarz functions
@Slereah So how are distributions on $\mathscr S$ related to those on $\mathscr D$?
Can you take limits of regular ones to get tempered ones?
 
$\mathscr S \subset \mathscr D$
 
Wrong way around.
 
Oh right
On the other hand IIRC you do have $\mathscr S' \subset \mathscr D'$
 
7:19 PM
Hmm. I've got a hundred pages until I get to those in Yosida :(
 
7:39 PM
$\mathscr{D}$ functions are dense in $\mathscr{D}'$ endowed with the $\sigma(\mathscr{D}',\mathscr{D})$ topology
 
@yuggib Which topology is that?
 
The weak topology on $\mathscr{D}'$ that makes all the elements of $\mathscr{D}$ (seen as functionals acting on $\mathscr{D}'$) continuous.
 
@yuggib So, the weak-* topology?
 
In this case, yes
the weak topologies are more general than just the weak-*
 
How do I numerically find the energy of a wavefunction?
I have its $x$ and $\psi (x)$ values.
 
7:55 PM
compute $\langle \psi|H|\psi\rangle$
 
@0celo7 I don't get how I would do that though. Analytically, that makes sense. But computationally?
 
If you don't know its Hamiltonian you're not gonna be able to
 
As a bit of background info: I am trying to use numerical methods to compute the energies of the infinite square well. I reduced the time independent schrodinger equation to a set of first order differential equation and used that to generate a wavefunction
 
Infinite square well is just free Hamiltonian on an interval
 
@loltospoon $\int_\Bbb R \psi^*(x) (H\psi)(x)\,dx$.
 
7:59 PM
by "generate" I mean that I now have the $x-y$ pairs that define my wavefunction. That's all I have.
 
So $$\int_{[a,b]} \psi^*(x) \hbar^2 \partial_x \psi(x) dx$$
 
@0celo7 that makes sense, but idk what I would use for $H$ numerically
 

« first day (2313 days earlier)      last day (2601 days later) »