# Untitled

unknown
python
2 years ago
3.1 kB
9
Indexable
Never
```from math import e

def cells(T,Te_2):
exp = e
Tk = T*exp
Te_3 = Te_2 + 2*Tk
T_1 = Te_2 - Tk
Xk = ((2*exp)/(exp-1))*Tk
T_0 = Te_3 - Xk
Te = exp*(T_1-T_0)+T_0
Te_e = exp**exp*(T_1-T_0)+T_0
Te_32 = (exp**3)*(T_1-T_0)/2+T_0
return (T_0,T_1,Te,Te_2,Te_3,Te_e,Te_32,Tk)

def cells1(T,Te_2):
exp = e
Tk = T*exp
Tk_1=T
T_1 = Te_2 - Tk
Xk_1 = ((2*exp)/(exp-1))*Tk_1
T_0 = Te_2 - Xk_1
Te = exp*(T_1-T_0)+T_0
Te_e = exp**exp*(T_1-T_0)+T_0
Te_32 = (exp**3)*(T_1-T_0)/2+T_0
Te_3 = (exp**3)*(T_1-T_0)+T_0
T
return (T_0,T_1,Te,Te_2,Te_3,Te_e,Te_32)

fig = go.Figure()
fig.update_layout(
autosize=False,
title='Ячейка развития',
yaxis_title='ln(y)',
xaxis_title='t',
width=1200,
height=650,
paper_bgcolor="white")
fig.update_yaxes(range=[-0.5, 4], constrain='domain')
fig.update_xaxes(range=[0, 10502], constrain='domain')
T = 1008
Te_2 = 3739
T_0,T_1,Te,Te_2,Te_3,Te_e,Te_32,Tk = cells(T,Te_2)

print(T_0,T_1,Te,Te_2,Te_3,Te_e,Te_32,Tk)

marker_color="black",marker_size=15,marker=dict(symbol=42),line=dict(color='black', width=2, dash='solid')))

text="0",
showarrow=False)
text="1",
showarrow=False)
text="e",
showarrow=False)
text="e^2",
showarrow=False)