Argument of a Dual Number
まだ誰も着手していません。
評価
調査の方向性
issue に示されているメソッド angle{T<:Real}(z::DualNumbers.Dual{T}) から始め、リンクされている generalized-complex-numbers 論文を読んでください。現在の dual number に対する引数の挙動を提案された定義と比較し、関連する sinp、cosp、tanp 関数も検討してください。dual number に対する引数の挙動が定義され、一貫してカバーされていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
The following method always seems to return 0 + 0ɛ for positive duals.
angle{T<:Real}(z::DualNumbers.Dual{T})
angle{T<:Real}(z::Dual{T}) = z ≥ 0 ? zero(z) : one(z)*π
This is a lot different than the definition of argument that I'm familiar with. In the generalized complex numbers, parameterized by p and q:
z = x + iy (x, y ∈ R) where i^2 =iq + p (q, p ∈ R)
(so i, ɛ, λ, whatever we call the imaginary unit)
Ignoring q and setting it to zero, and setting p = 0 we get the Dual numbers, p = 1 gives Double numbers, and p = -1 giving the regular Complex numbers. There is a general definition for angle or argument, magnitude or norm, and a very weird concept of unit circle, that is only actually what you would call a circle for p = -1.

So the unit "circle" is everywhere ||z|| = 1, which for duals is just at 1 and -1.
So for duals the argument is y / x. I will link to a paper, and just paste an image of the relevant part here.

Here is a link to the paper this is from:
https://people.rit.edu/harkin/research/articles/generalized_complex_numbers.pdf
The paper also shows how to implement the sinp, cosp, and tanp trig functions for any value of p.
- 主要言語
- Julia
- スター
- 80
- フォーク
- 28
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
JuliaDiff/DualNumbers.jl のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
JuliaDiff/DualNumbers.jl#94 · コメント 2 件 ·
-
div() and rem()オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
JuliaDiff/DualNumbers.jl#93 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
JuliaDiff/DualNumbers.jl#92 · コメント 5 件 ·
-
bitmix not definedオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
JuliaDiff/DualNumbers.jl#88 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
JuliaDiff/DualNumbers.jl#87 ·
JuliaDiff/DualNumbers.jl の issue をすべて見る
似ている issue
-
`ShallowWaterModel` allocates ~9 KiB per grid point per RK3 stage on the CPU対応中かも @ali-ramadhan が今日担当しました。 オープンperformance 🏍️
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
CliMA/Oceananigans.jl#6421 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
NCAR/musica#1118 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
`AMSGrad` state starts at `epsilon` instead of zero, so zero gradients move parameters and small gradients are damped対応中かも @parth-patel010 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
FluxML/Optimisers.jl#247 · コメント 1 件 ·
-
README should say that row and column order must match対応中かも @SAUMYARSH が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
OpenFUSIONToolkit/GPEC#644 ·
メンテナーはふだん 3 日以内に返信