Beakerboy / Beakerboy/VBA-Math-Objects

VBA-Math-Objects Errors in Matrix.cls and Vector.cls

未关闭
#8 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
VBA
星标
10
派生
3
PR 合并指标
30 天内没有已合并 PR

描述

Hi, Thanks for your efforts and sharing's

When I compile your codes

in Matrix.cls file:

Public Function ReplaceRow(iNum, inRow As Vector) As Matrix
If Me.N <> inRow.N Then

Should be corrected. Vector does not have N

If Me.N <> inRow.M Then

in Vector.cls file

Public Function Magnitude()
Sum = 0

Should be corrected. Vector has a Sum function also

Public Function Magnitude()
dsum = 0
For i = 1 To Me.M
dsum = dsum + dA(i, 1) ^ 2
Next i
Magnitude = Math.sqr(dsum)
End Function

Good days

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先编译 Matrix.cls 和 Vector.cls,以重现报告的错误。检查 Matrix.cls 中的 ReplaceRow 和 Vector.cls 中的 Magnitude,然后验证修正后的成员引用能够编译,并且幅值计算仍按预期工作。

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

评估

技术栈
visualbasic
领域
tooling
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
55/100

把新 issue 发到你的邮箱

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