Stephen Brooks 🦆 on Nostr: Fixed some well-hidden simulation bugs. One was putting the magnetic gradient dB/dx ...
Fixed some well-hidden simulation bugs. One was putting the magnetic gradient dB/dx where the magnetic field B should be. The other was using u^v to write vector cross product in C, but precedence means a+u^v evaluates as (a+u)^v, so I needed brackets! #physics #accelerators
Published at
2025-10-15 22:43:52 UTCEvent JSON
{
"id": "58e4cc8cfcd504edb09ee67cb62cab9965c46d35c0123b85fab4d0e84af7cd12",
"pubkey": "e0baa8ebcaeed55330a87a40682c68d13c3a914775b416071eddee59f74b962c",
"created_at": 1760568232,
"kind": 1,
"tags": [
[
"t",
"physics"
],
[
"t",
"accelerators"
],
[
"proxy",
"https://mstdn.io/users/sjb/statuses/115380599674409894",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub/"
]
],
"content": "Fixed some well-hidden simulation bugs. One was putting the magnetic gradient dB/dx where the magnetic field B should be. The other was using u^v to write vector cross product in C, but precedence means a+u^v evaluates as (a+u)^v, so I needed brackets! #physics #accelerators",
"sig": "8a6d117808b9517fc27db5642d379e159a06bcb9a2b8a1d98314c9a96b84d7863a5690c7bb55fdb9fbd7f508c4afed2d9dc98622f680933ca9e840587897710c"
}