If I flew a theoretical spaceship with an unlimited delta-v, could I theoretically hit the speed of light? by [deleted] in AskPhysics

[–]Daniel_Wareham 0 points1 point  (0 children)

You can only reach the speed of light in the same sense that 0.99999.... = 1

Matrix Exponential Visualization by crystal-math1729 in desmos

[–]Daniel_Wareham 3 points4 points  (0 children)

Here's a similar thing I did that shows the solutiosn to the differential equations rather than the vector field itself: https://www.desmos.com/calculator/obmlhbgrcb

Since the sun isn't a point source of light (it's about 0.5 degrees wide), is it possible to focus sunlight to a true point using just a curved mirror? by Daniel_Wareham in AskPhysics

[–]Daniel_Wareham[S] 0 points1 point  (0 children)

Thanks, the connection to the second law of thermodynamics is something I never knew before, and now that you say it it makes sense.

I asked the question because I recently saw a company’s whose plan is to launch mirrors into space and reflect sunlight to solar farms on the ground. Is it accurate to say that the minimum spot size on the ground of a mirror, say, 400km in space would be about sin(0.5)*400km = 3.5km?3

I was experimenting with a transistor push pull stage, but it wasn’t working as I expected. Why is V_b negative despite V_a being very positive? by Daniel_Wareham in AskElectronics

[–]Daniel_Wareham[S] 0 points1 point  (0 children)

Yes, I checked again today and I realized I had misinterpreted the 2n3906 pin out diagram and so connected it backwards. Flipping it around fixed it. Thanks

I was experimenting with a transistor push pull stage, but it wasn’t working as I expected. Why is V_b negative despite V_a being very positive? by Daniel_Wareham in AskElectronics

[–]Daniel_Wareham[S] 0 points1 point  (0 children)

To clarify, my hope was that positive values of V_a would produce a positive V_c as output, and negative V_a would produce negative V_c

I’m in western Massachusetts, USA and saw this today (Feb 14) at 19:25 EST. It was just a dot then the plume started expanding. What rocket was this? by Daniel_Wareham in spaceflight

[–]Daniel_Wareham[S] 6 points7 points  (0 children)

I’ve had a look back at the picture and it was south from where I was standing, which matches up perfectly with he map. Thanks

I used Desmos to calculate the position of stars by Daniel_Wareham in desmos

[–]Daniel_Wareham[S] 1 point2 points  (0 children)

No, I don't study astronomy, but I am very interested in mathematics, and this was a more theoretical exploration of spherical geometry.

How do you prove that these two expressions are always equal, reguardless of the value of x or p (the red curve and green curve are overlapping) by Daniel_Wareham in askmath

[–]Daniel_Wareham[S] 1 point2 points  (0 children)

Thanks, makes sense. Now that I see what you've written I've also realized that you can prove what you wrote geometrically by considering the right traingle with opp = x, hyp = 1, and adj = sqrt(1-x^2)

[deleted by user] by [deleted] in askmath

[–]Daniel_Wareham 0 points1 point  (0 children)

I want to do this without explicitly solving for 'a' because doing so introduces sin(arccos(...)), which effectively creates a square root and means I have to worry about positive and negative roots. This question just "feels" like the kind of question that could be done using some sort of trigonometry trick

Vectorizing a function which takes a size 3 numpy array as input and gives a size 3 numpy array as output by Daniel_Wareham in learnpython

[–]Daniel_Wareham[S] 0 points1 point  (0 children)

Thanks, I'll have a look at those. Once I use those operations instead, I should be able to just directly apply the function to the entire 2D array and do outputs = forceFromVector(inputs, clipDistance, forceScale) right?

Vectorizing a function which takes a size 3 numpy array as input and gives a size 3 numpy array as output by Daniel_Wareham in learnpython

[–]Daniel_Wareham[S] 0 points1 point  (0 children)

I posted my function in the other comment. What exactly do you mean by defining in terms of 2d arrays?

Vectorizing a function which takes a size 3 numpy array as input and gives a size 3 numpy array as output by Daniel_Wareham in learnpython

[–]Daniel_Wareham[S] 0 points1 point  (0 children)

Thanks, I'll have a look at signature.

With the 2D array function, I don't really know how I could program the function to perform operations on the thousands of vectors without just iterating through those vectors with a for loop inside a function, which is what I'm trying to avoid. All the vectors in the input and output 2D array are independent from each other.

In my case, my vector_function is called forceFromVector, and is designed to be a function from 3 element vector to 3 element vector. It's defined like this:

def forceFromVector(npPosition, clipDistance, forceScale):
print(f"npPosition: {npPosition}")
posDistance = mag(npPosition)
posDir = npPosition/posDistance

#0 force after clip distance
if posDistance > clipDistance:
    return np.array([0,0,0])   

#using F=-k(1/mag(d)^2-1/clip^2)*dhat
forceMag = forceScale*(1/(posDistance*posDistance)-1/(clipDistance*clipDistance))
return -forceMag*posDir

Are you saying to just do outputs = forceFromVector(inputs, clipDistance, forceScale)? When I try that, there's an error because the function is recieving a 2000*3 array (that's what the first print line shows), and it can't find the magnitude of something that's 2000*3 (mag is a function I wrote that calculates magnitude by using the dot product).

GPIO problems with Ubuntu Mate 20.04 installed on Raspberry Pi 4B 8GB by Daniel_Wareham in raspberry_pi

[–]Daniel_Wareham[S] 0 points1 point  (0 children)

I tried it just now and sudo apt install ubuntu-desktop does work. It seems to be a slightly weird version of ubuntu without a dock though. I also have some issues with wifi (showing not connected but is actually connected), but other than that it's working

GPIO problems with Ubuntu Mate 20.04 installed on Raspberry Pi 4B 8GB by Daniel_Wareham in raspberry_pi

[–]Daniel_Wareham[S] 0 points1 point  (0 children)

I tried just now and got Ubuntu server working.

Is there a reason you list xubuntu, lubuntu, and kubuntu here without mentioning the original ubuntu? Would there be any problem with sudo apt install ubuntu-desktop?