math icon indicating copy to clipboard operation
math copied to clipboard

The Stan Math Library is a C++ template library for automatic differentiation of any order using forward, reverse, and mixed modes. It includes a range of built-in functions for probabilistic modelin...

Results 261 math issues
Sort by recently updated
recently updated
newest added

From [this](https://math.stackexchange.com/a/1237244) stackoverflow post it looks like we can phrase `max(a,b)` into $$ max(a,b) = \frac{a + b + |a-b|}{2} $$ and similarly for min $$ min(a,b) = \frac{a +...

good first issue

## Summary This PR replaces our manual implementation of the `beta` function with the one from Boost which is [more accurate over a broader domain](https://www.boost.org/doc/libs/1_87_0/libs/math/doc/html/math_toolkit/sf_beta/beta_function.html#math_toolkit.sf_beta.beta_function.implementation) I've also combined the multiple...

We should run clang-tidy in our Jenkins CI. In particular, the [`misc-definitions-in-headers`](https://clang.llvm.org/extra/clang-tidy/checks/misc/definitions-in-headers.html#misc-definitions-in-headers) rule should keep things like #3245 up to date over time _Originally posted by @WardBrian in https://github.com/stan-dev/math/issues/3245#issuecomment-3386018840_

Eigen 5.0.0 was recently released https://gitlab.com/libeigen/eigen/-/releases/5.0.0 **Note**: They also changed their release naming conventions from WORLD.MAJOR.MINOR to MAJOR.MINOR.PATCH, so this is much closer to a "Eigen 3.5.0" by the old...

## Description This issue is a feature proposal. As a continuation of https://github.com/stan-dev/math/issues/3219, we will add rng for yule simon distribution. ## Expected Output `ints yule_simon_rng(reals alpha)` ## Checklist This...

## Description This issue is a feature proposal. As a continuation of https://github.com/stan-dev/math/issues/3219, we will add cdf for yule simon distribution. ## Expected Output `real yule_simon_cdf(ints n, reals alpha)` ##...

## Description This issue is a feature proposal. As a continuation of https://github.com/stan-dev/math/issues/3219, we will add lcdf for yule simon distribution. ## Expected Output `real yule_simon_lcdf(ints n, reals alpha)` ##...

Hi, it appears student_t_cdf() returns 0.0 in cases where it shouldn't. I have attached session output showing mismatched values - p-values using student_t_cdf() against R's t.test. Most match almost exactly...

> It would help if we had these, which I think we should also add: > > ```stan > matrix to_matrix(array[] vector x); > matrix to_matrix(array[] row_vector u); > >...

feature
new function
good first issue

When running `make doxygen`, I got the following errors ``` mkdir -p doc/api doxygen -v 1.14.0 doxygen doxygen/doxygen.cfg /build/stanmath/src/math-5.1.0/stan/math/fwd/functor/finite_diff.hpp:98: error: The following parameter of stan::math::finite_diff(const F &func, const TArgs &......