## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
• Mar 17 2020 12:01

wspr on master

elliptic123: more vectorisation… (compare)

• Mar 16 2020 12:57

wspr on master

elliptic123: add reshape so out… (compare)

• Mar 16 2020 00:22

wspr on master

fix bug in convergence with com… (compare)

• Jan 23 2019 20:46
rpljwi commented #21
• Jan 23 2019 18:19
moiseevigor commented #21
• Jan 23 2019 15:00
rpljwi commented #21
• Jan 23 2019 05:24

wspr on master

fix typo (compare)

• Jan 23 2019 05:24
wspr closed #21
• Jan 23 2019 05:23
wspr commented #21
• Jan 22 2019 23:45
rpljwi commented #21
• Jan 22 2019 23:44
rpljwi commented #21
• Jan 22 2019 23:34
wspr commented #21
• Jan 22 2019 23:29
rpljwi opened #21
• Jul 30 2018 15:38
tangjinchuan commented #20
• Jul 30 2018 15:25
tangjinchuan commented #20
• Jul 30 2018 15:24
tangjinchuan commented #20
• Jul 30 2018 15:23
tangjinchuan commented #20
• Jul 30 2018 15:23
tangjinchuan commented #20
• Jul 30 2018 15:04
tangjinchuan commented #20
• Jul 27 2018 08:10
tangjinchuan commented #20
Igor Moiseev
@moiseevigor
Hello, welcome to the elliptic project chat room. Type here your questions!
haessar
@haessar
Hi Igor, I came across your Elliptic MATLAB / Octave project when trying to find implementations of the Weierstrass P function, and noticed that it is a work in progress
Correct me if I'm wrong, but can this not simply be implemented in the following way:
function P = WeiP(z,e1,e2,e3)
m = (e2 - e3)/(e1 - e3);
w = z*sqrt(e1 - e3);
sn = ellipj(w,m);
P = e3 + (e1 - e3)/(sn^2);
end
When comparing the output with other languages (R, Mathematica) it appears to work fine
Igor Moiseev
@moiseevigor
@haessar Ooo, thank you for this idea! This is a nice representation of Weierstrass P function with Jacobi functions, I think we will do it so.
haessar
@haessar
Just to make one correction to my code, (sn^2) should be changed to (sn.^2) to account for when z is a vector.
Igor Moiseev
@moiseevigor
Sure thanks! I'll merge it in a near future.