MCP Servers

模型上下文协议服务器、框架、SDK 和模板的综合目录。

Approximating Pi using Monte Carlo Method

创建于 10/14/2025
更新于 2 months ago
Repository documentation and setup instructions

Approximating Pi using Monte Carlo Method

A simple c++ project that approximates the value of pi using the Monte Carlo method. It randomly samples points inside a unit square, checks how many fall within a quarter circle, and uses that ratio to estimate π.

The approximation is plotted using gnuplot to show how the value converges over time.

Plot

Here's what the output looks like after running the simulation: Pi Approximation Plot

快速设置
此服务器的安装指南

安装命令 (包未发布)

git clone https://github.com/cachevector/mcpi
手动安装: 请查看 README 获取详细的设置说明和所需的其他依赖项。

Cursor 配置 (mcp.json)

{ "mcpServers": { "cachevector-mcpi": { "command": "git", "args": [ "clone", "https://github.com/cachevector/mcpi" ] } } }