Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何像 Mathematica 那样执行这种不正确的积分?
拿这个 Mathematica 代码 f x Exp x c 0 9 g x c x c 1 Exp x c SetPrecision Integrate f x Log f x g x x 0 001 Infinity 20 Mathem
python
r
Math
Julia
numericalintegration
Python 中多元正态分布的集成
我正在尝试在 python 中集成多元分布 为了测试它 我使用二元正态分布构建了这个玩具示例 我用nquad 以便稍后将其扩展到两个以上的变量 这是代码 import numpy as np from scipy import integr
python
numericalintegration
在给定建议函数的情况下使用重要性采样进行蒙特卡洛积分
给定拉普拉斯分布提案 g x 1 2 e x 和样本量n 1000 我想进行蒙特卡罗 MC 积分来估计 通过重要性采样 最终 我想在到达那里后计算 R 中 MC 估计的平均值和标准差 编辑 在回答以下问题后迟到 这是我到目前为止的 R 代码
r
sampling
montecarlo
integral
numericalintegration
Python 数值积分与辛普森法则
我已经开始学习这本书了 计算物理练习 5 4 及其练习 我遇到了以下问题 编写一个 Python 函数 J m x 使用 N 1000 个点的辛普森规则计算 Jm x 的值 在程序中使用您的函数在单个图形上绘制贝塞尔函数 J0 J1 和 J
python
numericalintegration
simpsonsrule
Python 中的梯形规则
我正在尝试在 Python 2 7 2 中实现梯形规则 我写了以下函数 def trapezoidal f a b n h float b a n s 0 0 s h f a for i in range 1 n s 2 0 h f a i
python
numericalintegration
使用 odeint 函数定义
很菜鸟的问题 所以请耐心听我说 我按照这里给出的例子 gt http www codeproject com Articles 268589 odeint v2 Solving ordinary Differential equations
numericalmethods
differentialequations
numericalintegration
通过定义 X 和 Y 构建函数,然后在 R 中积分
我需要构造一个函数 其中 x 值来自下面这个矩阵的第一列 y 值来自同一矩阵的第二列 目的是稍后计算所需范围内的积分 matrix structure c 0 01 0 02 0 03 0 04 0 05 0 06 0 07 0 08 0
r
integral
Calculus
numericalintegration
理解和实现 R 中分位数函数的数值积分
我需要使用 R 计算下面的积分 我设法在 R 中使用分位数回归完成 q theta x 函数 包 quantreg matrix structure c 0 01 0 02 0 03 0 04 0 05 0 06 0 07 0 08 0 0
r
normaldistribution
integral
numericalintegration
quantile
Matlab ode 求解器:改变状态和指定时间
我正在求解 t 0 时的一组 ODE dy dt 所有初始条件 t 0 y 0 0 0 0 我可以在不同时间向 y 值添加一些数字 例如 在 t 10 时 应将 y1 添加到该数字 在 t 20 时 应将 y2 添加到该数字等 并求解方程
MATLAB
solver
ODE
numericalintegration
numpy 中高斯-勒让德求积的不同区间
我们如何使用 NumPy 包numpy polynomial legendre leggauss超过除 1 1 下面的例子比较scipy integrate quad区间内的 Gauss Legendre 方法 1 1 import num
python
NumPy
scipy
numericalintegration
函数矩阵、SymPy 和 SciPy 上的数值积分
从我的 SymPy 输出中 我得到了如下所示的矩阵 我必须将其积分为 2D 目前我正在按元素进行操作 如下所示 此方法有效 但速度太慢 对于sympy mpmath quad and scipy integrate dblquad 对于我的
python
scipy
sympy
symbolicmath
numericalintegration
«
1
2