@@ -22,16 +22,17 @@ def plot_combined_graph_from_tests(primality_tests):
2222 plt .show ()
2323
2424
25- def generate_spp_heatmap (c0_range , c1_range , k_rough ):
26- list_of_spp = [[smallest_lucas_type_pseudoprime (c0 , c1 , k_rough , 1000 ) for c0 in c0_range ] for c1 in c1_range [::- 1 ]]
27- sns .heatmap (list_of_spp , cmap = "YlGnBu" , annot = True , fmt = "d" , xticklabels = c0_range , yticklabels = c1_range [::- 1 ])
25+ def generate_spp_heatmap (c0_min , c0_max , c1_min , c1_max , k_rough , pp_max ):
26+ list_of_spp = [[smallest_lucas_type_pseudoprime (c0 , c1 , k_rough , pp_max ) for c0 in range ( c0_min , c0_max ) ] for c1 in range ( c1_min , c1_max ) [::- 1 ]]
27+ sns .heatmap (list_of_spp , cmap = "YlGnBu" , annot = True , fmt = "d" , xticklabels = range ( c0_min , c0_max ), yticklabels = range ( c1_min , c1_max ) [::- 1 ])
2828 plt .title ('Logs of Smallest 3-rough Pseudoprimes ' , fontdict = {'fontsize' :13 })
2929 plt .xlabel ('Parameter c0' )
3030 plt .ylabel ('Parameter c1' )
3131 plt .show ()
32- def generate_npp_heatmap (c0_range , c1_range , k_rough ):
33- list_of_spp = [[number_of_lucas_type_pseudoprime_up_to (c0 , c1 , k_rough , 1000 ) for c0 in c0_range ] for c1 in c1_range [::- 1 ]]
34- sns .heatmap (list_of_spp , cmap = "YlGnBu" , annot = True , fmt = "d" , xticklabels = c0_range , yticklabels = c1_range [::- 1 ])
32+
33+ def generate_npp_heatmap (c0_min , c0_max , c1_min , c1_max , k_rough , pp_max ):
34+ list_of_spp = [[number_of_lucas_type_pseudoprime_up_to (c0 , c1 , k_rough , pp_max ) for c0 in range (c0_min , c0_max )] for c1 in range (c1_min , c1_max )[::- 1 ]]
35+ sns .heatmap (list_of_spp , cmap = "YlGnBu" , annot = True , fmt = "d" , xticklabels = range (c0_min , c0_max ), yticklabels = range (c1_min , c1_max )[::- 1 ])
3536 plt .title (f'Number of 3-rough Pseudoprimes up to 1000' , fontdict = {'fontsize' : 13 })
3637 plt .xlabel ('Parameter c0' )
3738 plt .ylabel ('Parameter c1' )
0 commit comments