Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

use symbols as `Real` type

未关闭
#30 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
julia

调研方向

复现 issue 中的 symbols("μ, σ", real=true) 和 LogNormal(μ, σ) 示例。追踪符号输入的类型化方式以及它们如何传递给 Distributions,然后将完成定义为:接受符号参数而不产生未定义方法错误,同时保留现有的符号行为。

由索引模型根据 Issue 内容生成。

描述

I want to use your symbols with the Distributions package, but I get an undefined method error for the symbolic inputs because most distribution parameters are expected to be Real while Sym <: Number.

example:

using SymPy, Distributions
μ, σ = symbols("μ, σ", real=true)
LogNormal(μ, σ)

Is it possible to create a symbol that is a Real or more general, another type?

Thanks.

PS: it seems all builds and tests are failing, all the buttons are red on github..

主要语言
Julia
星标
282
派生
59
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

JuliaPy/SymPy.jl 的其他 Issue

查看 JuliaPy/SymPy.jl 的全部 Issue

相似的 Issue

更多 Julia Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。