Recent content by xDk
-
X
Understanding this minmax function
Ah okay, makes sense now, thanks mate :D Just curious, if I have future questions like this, is it better to post in the homework section or is this fine?- xDk
- Post #6
- Forum: Programming and Computer Science
-
X
Understanding this minmax function
Code tags are fixed :) Oh I see now, that makes more sense. So the lessthan and grtrthan function are used as the argument test in the minmax function. So if the lessthan and grtrthan functions give true or false answers, how does it give int answers when run together? Is it correct to say that...- xDk
- Post #3
- Forum: Programming and Computer Science
-
X
Understanding this minmax function
Hey guys, so I am going through "Learning Python" book and I came across this minmax function. def minmax(test, *args): res = args[0] for arg in args[1:]: if test(arg, res): res = arg return res def lessthan(x, y): return x < y def grtrthan(x, y): return x > y...- xDk
- Thread
- Function
- Replies: 7
- Forum: Programming and Computer Science
-
X
Graduate Help Understanding Simultaneity Diagram
This is sort of what I meant This is very new to me. I appreciate all the help. From the description you just explained, it makes more sense. Ill just think about it a bit more then get back to you :D- xDk
- Post #10
- Forum: Special and General Relativity
-
X
Graduate Help Understanding Simultaneity Diagram
With that said, how does he see it between Q and S? Because the rays coming back from Q and S (U and V) happen after O on B's worldline.- xDk
- Post #8
- Forum: Special and General Relativity
-
X
Graduate Help Understanding Simultaneity Diagram
I think I get it now. Without doing any calculation though, could I say since B's world line has a different slope to A you would have to transform his "plane/graph" then you could run a line that is horizontal in his transformed "plane/graph" in the positive time direction and then the line...- xDk
- Post #7
- Forum: Special and General Relativity
-
X
Graduate Help Understanding Simultaneity Diagram
When you say Q is clearly before O because of its light cone I don't quite get that. Because I see an intersection at R from Q then S from P then O. Does the observer need to see the receiving light ray to say the event happened? Because then I see O then U from Q then V from P. I think maybe I...- xDk
- Post #4
- Forum: Special and General Relativity
-
X
Graduate Help Understanding Simultaneity Diagram
Hello, I am having a bit of trouble understanding this diagram. I can accept the example of the moving train with an observer beside the train and an observer on the train, then two lights emit from both ends of the train when the train pass the observer. But this diagram is a little confusing...- xDk
- Thread
- Diagram Simultaneity
- Replies: 10
- Forum: Special and General Relativity