◦⸰◦○◦⸰◦◯◦⸰◦○◦⸰◦                                          ◦⸰◦○◦⸰◦◯◦⸰◦○◦⸰◦                                       
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
4.3 KiB

<EFBFBD><EFBFBD>import plotly.graph_objects as Y-<EFBFBD><EFBFBD><EFBFBD>PU<EFBFBD><EFBFBD><EFBFBD><EFBFBD>8OT-7<EFBFBD><EFBFBD><EFBFBD>%dfY-T-Y-T-Y-df%<EFBFBD><EFBFBD>7<EFBFBD>T-O8<EFBFBD><EFBFBD><EFBFBD><EFBFBD>PU<EFBFBD><EFBFBD><EFBFBD>Y-
import numpy as Y-<EFBFBD>N<EFBFBD>ONNY-0Y-0Y-NNO<EFBFBD><EFBFBD>NY-
def Y-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>OOPUY-T-Y-T-Y-PUOO<EFBFBD>N<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Y-(x):
return (1-((-((-1)**Y-<EFBFBD>N<EFBFBD>ONNY-0Y-0Y-NNO<EFBFBD><EFBFBD>NY-.floor(x/Y-<EFBFBD>N<EFBFBD>ONNY-0Y-0Y-NNO<EFBFBD><EFBFBD>NY-.pi*2)*(Y-<EFBFBD>N<EFBFBD>ONNY-0Y-0Y-NNO<EFBFBD><EFBFBD>NY-.exp(-1/((x/Y-<EFBFBD>N<EFBFBD>ONNY-0Y-0Y-NNO<EFBFBD><EFBFBD>NY-.pi*2)-Y-<EFBFBD>N<EFBFBD>ONNY-0Y-0Y-NNO<EFBFBD><EFBFBD>NY-.floor((x/Y-<EFBFBD>N<EFBFBD>ONNY-0Y-0Y-NNO<EFBFBD><EFBFBD>NY-.pi*2))))
/(Y-<EFBFBD>N<EFBFBD>ONNY-0Y-0Y-NNO<EFBFBD><EFBFBD>NY-.exp(-1/((x/Y-<EFBFBD>N<EFBFBD>ONNY-0Y-0Y-NNO<EFBFBD><EFBFBD>NY-.p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