python libraries
04-22-2021, 04:24 PM
Post: #10
 robmio Member Posts: 170 Joined: Jan 2020
RE: python libraries
Although the "HP PRIME" G2 calculator is very fast, when it calculates the integral to obtain the "Studentize q Rance distribution CDF" function, it takes about 33 seconds. Is there a way, with Python, to reduce the computation time of this function?

#cas
Studentized_Range_q_P_Value(q,k,ν):=
BEGIN
LOCAL funzione;
funzione:=(√(2*π)*k*ν^(ν/2))/
(Gamma(ν/2)*2^(ν/2-1))*∫(s^(ν-1)*
e^((-ν*s^2/2))/(√(2*π))*∫(e^((-z^2)/2)/
(√(2*π))*(normald_cdf(0,1,z+q*s)-
normald_cdf(0,1,z))^(k-1),z,
-(∞),+∞),s,0,+∞);
RETURN 1-funzione;
END;
#end

This is one of the reasons why I asked if HP PRIME can "import" the Scipy library, Numpy or scipy.integrate (see https://www.youtube.com/watch?v=lzp48-AzUO0).

Best regards, Roberto
 « Next Oldest | Next Newest »

 Messages In This Thread python libraries - robmio - 04-20-2021, 11:49 AM RE: python libraries - jonmoore - 04-20-2021, 05:21 PM RE: python libraries - parisse - 04-21-2021, 02:20 PM RE: python libraries - cyrille de brébisson - 04-22-2021, 11:17 AM RE: python libraries - jonmoore - 04-22-2021, 12:44 PM RE: python libraries - toml_12953 - 04-22-2021, 01:28 PM RE: python libraries - John Keith - 04-22-2021, 04:11 PM RE: python libraries - roadrunner - 04-22-2021, 01:07 PM RE: python libraries - parisse - 04-22-2021, 03:07 PM RE: python libraries - jonmoore - 04-22-2021, 04:38 PM RE: python libraries - robmio - 04-22-2021 04:24 PM RE: python libraries - parisse - 04-22-2021, 06:58 PM RE: python libraries - jonmoore - 04-23-2021, 05:13 AM RE: python libraries - parisse - 04-23-2021, 05:51 AM RE: python libraries - jonmoore - 04-23-2021, 09:23 AM RE: python libraries - parisse - 04-23-2021, 10:54 AM RE: python libraries - jonmoore - 04-23-2021, 11:08 AM

User(s) browsing this thread: 1 Guest(s)