density.fnc

来自「智能画图软件」· FNC 代码 · 共 27 行

FNC
27
字号
##   This is a rough approach to fit a model function to the density#   data of a liquid crystal. The function consists of a linear#   branch for the high temperature region and of a curved branch with#   linear asymptote for the low temperatuer branch##   free parameters:#   m1, m2  slopes of the linear function in the low and high T region#   Tc	    transition temperature#   dens_Tc density at the transition temperature#   g	    factor to scale tanh functionml	= -0.0001mh	= -0.0001dens_Tc = 1.020Tc	= 45g	= 1b	= 0.1high(x) = mh*(x-Tc) + dens_Tclowlin(x)  = ml*(x-Tc) + dens_Tccurve(x) = b*tanh(g*(Tc-x))density(x) = x < Tc ? curve(x)+lowlin(x) : high(x)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?