r/ScientificComputing • u/alexis_placet • 4h ago
Train in Your Tab: PyTorch, JAX and ML Compilers in the Browser
r/ScientificComputing • u/alexis_placet • 4h ago
r/ScientificComputing • u/jigglypoppp • 8h ago
To clarify what I'm actually curious about from a physics standpoint:
In classical mechanics (like the general N-body problem), "solving" a system traditionally means finding an analytic closed-form expression (which Bruns/Poincaré proved doesn't exist in general), whereas numerical integrators (`f32`/`f64`) are treated as mere approximations because floating-point rounding and chaos destroy time-reversibility and drift away from the true trajectory.
Here, the system evolves purely on an integer lattice (`float ops = 0`) with exact time-reversibility (`0 bits` diff when reversed back to `t=0`) and zero energy/phase drift—essentially acting as a lossless, bijective discrete time-evolution operator rather than a lossy floating-point approximation.
From a theoretical or computational physics perspective, how do you draw the line between "merely simulating" a chaotic/constrained system vs. having an exact discrete/algebraic solution on a lattice?
r/ScientificComputing • u/Emergency-Tutor-7 • 10h ago
Repo: https://github.com/Furox-Art/scientific-reasoning-auditor - Python 0.11.0 (HEAD d9f0e14), Node adapter 0.4.0, no required Python dependencies.
It reads a manuscript, extracts reported statistics and method claims, and recomputes the ones that are mechanically checkable: statistic consistency against the stated degrees of freedom, multiple-testing corrections, regression and meta-analysis inputs, prospective power and sample size, declared-DAG adjustment, MCMC diagnostics, ML split manifests. Manuscripts stay read-only; findings go to separate reports:
sra audit manuscript.md --out reports/sampleWhat I would defend as the design choice is the abstain path, and it is also the most recent commit: when a discrepancy sits under an undeclared two-sided t/z default or an unspecified degrees-of-freedom correction, it now withholds the verdict instead of declaring a reporting error. The deterministic toolkit (SymPy, Pint, SciPy replay) and the spaCy/RapidFuzz passage candidates follow the same rule - candidates a person confirms, never truth claims.
Install:
python -m pip install --upgrade "scientific-reasoning-auditor[pdf,statistics]"One honest limit: the published-reference pilot measured the unchanged 0.9.0 engine against historical manual labels for 1120 selected psychology results - 60% decision coverage, 34 of 49 reference errors flagged, 34 of 54 flags agreeing with the reference. That is retrospective conditional agreement on third-party input strings, not whole-paper validation, and it does not test the text-extraction step at all.
r/ScientificComputing • u/UhLittleLessDum • 11h ago
Hey everyone,
I've been working on a paper for a few years that's a modified model of GR that uses an unwrapped Kaluza-Klein dimension to satisfy classical simultaneity. I just got paid AI for the first time after I quit my job to work on the paper full-time, so of course one of the first things I did was have it update this app I built a while ago.
The app is a visualizer for pretty much everything relativity, even if you're not very interested in the Kaluza-Klein model or the 4d interpretation. Unfortunately it's written in Swift, so it's MacOS only, and you'll have to go into settings and whitelist it... It's not worth sending it to Apple for notarization just for a demo app, but it really is an incredible tool I wish I would've had a year ago.
https://github.com/flusterIO/aog_explorer/releases/tag/0.0.3
r/ScientificComputing • u/SuspiciousEmploy1742 • 20h ago
Hey there the a short background about me; i am a Computational mathematics student and have experience with multicore programming, OpenMP and CUDA.
I am about to finish my Master's and applying for PhD applications. Alongside applying to the applications i feel stuck around the learning curve and need a direction to persue further studies. Currently I am working on demonstration of my mathematical algorithms knowledge and parallelising the code onto multicore CPU and GPU. But then what else can I do apart from this ? My brain is limited to the mathematical way of thinking and I want to discuss about further directions that I can work on.
Well, I thank all the people wanting to help in advance. :)
r/ScientificComputing • u/im4lwaysthinking • 1d ago
r/ScientificComputing • u/Exact-Schedule-3442 • 1d ago
r/ScientificComputing • u/No_Shoe_8365 • 1d ago
Our group just released SiNDAE (pronounced "sin-day"), a Python package for hybrid modeling. You keep the physics you trust, replace the term you don't know with a neural net, and fit the whole thing to data.
Most neural ODE / UDE tooling trains sequentially: integrate forward, backprop, repeat until the coffee runs out. That works great for ODEs. Add algebraic constraints and it gets awkward fast, especially for higher-index DAEs. The usual fixes are penalty terms or projection, so your mass balance turns into more of a suggestion.
SiNDAE uses the simultaneous approach from dynamic optimization instead. Instead of integrating forward and backpropagating through the solver, we discretize the DAE with Lagrange–Radau collocation on finite elements (Pyomo.DAE). The network weights, states and algebraic variables then all become decision variables in one sparse NLP, which we solve with an interior-point method using exact second derivatives. There's no integrator in the loop. Higher-index DAEs are fine because their algebraic equations are just NLP constraints, satisfied at every collocation point.
If your problem is too big for one NLP (lots of trajectories, bigger nets), there's a decomposition mode. An outer Adam loop updates the weights, the per-trajectory NLPs get solved in parallel (MPI optional), and the gradients come from implicit differentiation through the KKT conditions. Switching between the two modes takes one keyword.
Highlights:
- ODEs and high-index DAEs
- Hard constraint satisfaction
- A decomposition mode for bigger problems (Adam outer loop, parallel per-trajectory NLPs, KKT sensitivities), one keyword away
- Works with partially observed data
- Custom architectures through a grey-box interface
- sklearn-style fit / predict
- No HSL license. The default solvers ship as pip wheels, so pip install sindae is the whole install
- Export to ONNX, Equinox, JSON or OMLT
- A sindae-skills folder for people who build models with coding agents like Claude Code (most people)
Available:
- GitHub: https://github.com/Alves-research-group/SiNDAE
- PyPI: pip install sindae
- Docs: https://alves-research-group.github.io/SiNDAE/
- Paper: https://arxiv.org/abs/2504.04665
- JOSS Paper (submission): https://github.com/Alves-research-group/SiNDAE/blob/main/paper/paper.pdf
Feedback (and a GitHub star ⭐) welcome.
r/ScientificComputing • u/pixelwhippedme • 1d ago
Version 1.1.2 is now out and signed SharpMind Studio - Free download and install on Windows | Microsoft Store.
Example of start to finish training available here Train a small model from scratch: 2,000 steps on a rented GPU. And full Wiki here. SharpMind Studio — local-first model workbench with GPU compute.
Version 1.1.3 now in the works
r/ScientificComputing • u/DouniaDT • 1d ago
[Article] Electromechanical coupling modeling and motor current signature analysis of bolt loosening of industrial robot joint — Xu K., Wu X., Wang D., Liu X.
Bonjour, je suis doctorante et je travaille sur le suivi de santé structurelle des robots industriels. Cet article est essentiel pour ma recherche. Mon établissement n’y a pas accès. Je serais très reconnaissante si quelqu’un pouvait le partager. Merci beaucoup d’avance pour votre aide !
r/ScientificComputing • u/Emergency-Tutor-7 • 1d ago
Repo: https://github.com/Furox-Art/axiomize - PyPI axiomize 1.15.0, MIT, Python 3.11+.
You describe a model as a versioned, machine-readable Model IR: variables with units, parameters with bounds and priors, equations, constraints, assumptions and a validity domain. The engine validates it dimensionally and numerically before it runs.
The failure it targets: a model runs, produces a convincing graph, and nobody can tell whether the equations are physically reasonable or whether anyone can re-run it.
What it does: mandatory units (require_units=True is fail-closed, and a separate audit lists every symbol that silently defaulted to dimensionless); dimensional and scale checks, so a rate in 1/day integrated in seconds is caught instead of quietly producing a number 86400x off; calibration, uncertainty and sensitivity analysis; portable export to SBML L3V2, CellML 2.0 and Modelica, with the IR's units and assumptions carried in an annotation block so the artifact keeps its own context. Interfaces are CLI, REST and an MCP server.
One honest limit: it does not make a bad model good. It makes a bad model fail loudly. A dimensionally consistent model with wrong equations passes.
r/ScientificComputing • u/Intelligent_Rice7138 • 2d ago
r/ScientificComputing • u/TheDrF • 2d ago
r/ScientificComputing • u/Quantum_and_math • 2d ago
The new video on psuedopotentials is out. It explains various pseudopotentials and which software uses which one thoroughly. The content is taken from original works (citation in the description). Do give a watch if you want to understand pseudopotentials and use them in your regular life.
r/ScientificComputing • u/Emergency-Tutor-7 • 2d ago
Repo: https://github.com/Furox-Art/scientific-computing-system
What it is: a pure-Python scientific computing library with zero runtime dependencies. Import name cds, distribution scientific-computing-system, MIT, Python 3.11 and newer, current release 2.2.23.
Why I wrote it: NumPy and SciPy are excellent, and they are also twenty years of accumulated design decisions. Meanwhile a lot of scientific code ends up as a notebook that nobody can run six months later. This is what the same library looks like if it starts today with no C extensions and no Fortran: algorithms you can read, diff and audit instead of calls into a compiled extension.
What is inside, 34 subpackages: linear algebra and math utilities; ODE and PDE solvers; numerical integration and quadrature; interpolation; optimization; probability and statistics; Monte Carlo; uncertainty propagation and sensitivity analysis; Bayesian helpers; information theory; signal processing; wavelets; graph algorithms; machine learning helpers; genetics; fractals; NLP; quantum simulation; causal, modeling and workflow layers; units and dimensional analysis; validation; provenance.
CLI: a cds command with 13 subcommands (info, modules, constants, calc, stats, sample, integrate, hypothesis, benchmark, plot, dashboard and so on). examples/ holds 35 runnable scripts and notebooks.
Reproducibility, which is the part I care about most: every run can write a manifest with its inputs, seeds, versions and hashes, so a result can be re-checked later instead of guessed at. That is the provenance and workflow layers, and any of the 34 sub-packages can emit into it.
Install: pip install scientific-computing-system
The core needs nothing but the standard library. Extras are opt-in: [scientific] pulls NumPy, SciPy, statsmodels, scikit-learn, SymPy and Z3; [io] adds HDF5 and NetCDF; [plot] adds matplotlib; [pandas] adds a DataFrame bridge; [dashboard] adds Streamlit. There is also an npm entry, but it is only a launcher shim around python -m cds.
Tests: 161 test modules under tests/, run in CI, with coverage reported on codecov.
The honest limitation, since it is the first comment every time: pure Python is slow on dense numerics. The committed benchmark artifact records 100x100 matrix multiplication at 0.0696 s against NumPy's 0.000060 s, about 1155x slower. That artifact is a single CI run whose platform, CPU and library versions were not recorded, so treat it as order of magnitude only.
So do not reach for this for heavy matrix work. Reach for it when the dependency is the problem rather than the speed: locked-down or air-gapped machines, single-file scripts you want to read end to end, teaching an algorithm without stepping through C, and runs that need to carry their own manifest. If you want this API at compiled speed, scientific-computing-system-2.0 is the NumPy build of the same project.
r/ScientificComputing • u/DataBaeBee • 2d ago
r/ScientificComputing • u/Turbulent-Gap5195 • 3d ago
r/ScientificComputing • u/Turbulent-Gap5195 • 3d ago
r/ScientificComputing • u/Delicious_Abies_9708 • 3d ago
Anyone want to start a GitHub project and just see where we get with it? So far I've started on vknumpy vkpandas and some datashader style.visuals
r/ScientificComputing • u/PeterBrobby • 4d ago
I explain the mathematics underpinning spring mechanics then implement a solution in C++ using a net as an example. Implementation begins at 10:05. Feedback is welcome.
r/ScientificComputing • u/Vasg • 4d ago
I'm developing a numerical equation solver, and I've recently been testing its ability to solve boundary value problems.
One of my test cases is:
0.001y''(x)+xy(x)=2
with boundary conditions:
y(0)=1, y(1)=2
over the interval [0,1].
My solver produces a strongly oscillatory solution, as shown in the attached screenshot.
However, I'd like to independently verify that the solution is correct, particularly the oscillations and their amplitudes.
I tried entering the problem into WolframAlpha, but couldn't obtain a solution. It's possible I'm not using the correct syntax.
Has anyone solved a similar problem using Mathematica, MATLAB, SciPy, or another numerical tool?
I'd be particularly interested in comparing numerical values at a few points along the interval, rather than just the overall shape of the plot.
Any help or suggestions for validating this solution would be greatly appreciated!
r/ScientificComputing • u/Academic-Challenge33 • 4d ago
I've been working on scientific software for some time, and one recurring problem I've encountered is how applications handle their input parameters.
In many scientific codes, particularly older C, C++, and Fortran applications, parameters are read from text files, namelists, or custom formats. Their physical meaning, valid ranges, units, and dependencies are often enforced somewhere inside the application code — or simply documented and left to the user.
This creates problems for reproducibility, validation, and maintenance, particularly when applications evolve over many years.
I've been developing SciNumTools3 (SNT3) to explore a different approach. It includes DIPL, a declarative language that describes parameters together with their types, physical dimensions, constraints, and dependencies.
The idea is to introduce a validated interface around existing scientific applications without requiring scientists to rewrite their numerical algorithms or abandon their established input formats.
I'm interested in how others approach this:
I'm particularly interested in experiences from people maintaining long-lived simulation codes or HPC applications.
I'm the developer of SNT3, so criticism of the approach is very welcome. I'd like to understand where it would genuinely help and where existing solutions are sufficient.
r/ScientificComputing • u/MightyZinogre • 4d ago
I’m one of the authors of a paper just accepted in Mathematical Programming Computation, and we’ve released a Python package that implements the method.
The problem. Performance and data profiles are the standard tools for comparing solvers on computational effort. But they implicitly assume solvers end up at comparable solutions. What if they converge to different minimizers, or some fail?
The idea. Quality profiles compare algorithms on the quality of the final objective value, so problems where solvers reach different solutions (or fail) don’t have to be discarded. They need no a priori accuracy thresholds, let you “zoom” into any accuracy range, and work for both smooth and derivative-free optimization. We also establish some theoretical properties (monotonicity, invariance under affine transformations of the objective) and analyze when each solver’s curve is independent of the others in the comparison.
The package.
pip install quality-profiles
It reproduces the results of the reference MATLAB implementation, and includes publication-ready plots, interactive figures and the data needed to reproduce the paper’s experiments.
The paper will be online after Springer’s production phase. Happy to hear feedback, questions, or ideas for what would make this more useful in practice. Contributions are welcome too.