(*不准用双曲函数 用2楼asdasd1dsadsa的方法 *)
killsinh[exp_]:=exp/.{Sinh[x_]->(E^(x)-E^(-x))/2,Cosh[x_]->(E^(x)+E^(-x))/2,ArcSinh[x_]->Log[x+Sqrt[1+x^2]]}
si2[exp_]:=Simplify[killsinh@exp,ComplexityFunction->(If[FreeQ[Cosh|Sinh|Tanh|Cot|Sec]@
#,LeafCount@#
,10000]&)];
测试例子
FullForm@si2[Sin[t]/(1 - Cos[t])]
结果是Times[-1, Power[Plus[-1, Cos[t]], -1], Sin[t]]
在前面多了个负号,实质上复杂度更大了,
这只是小小式子的问题,如果式子更复杂, 说不定会有其他BUG