|
求助高人,如下的代码:
ClearALl["Global`*"];
a = x I; a' = -a; b = b' = 0; c = c' = x; d = x (1 + I);
d' = x (1 - I); e = x + y I; e' = x - y I;
Duichendian[p_, a_, b_] := (a' b - a b' + p' (a - b))/(a' - b');
Duichendian'[p_, a_, b_] := (a b' - a' b + p (a' - b'))/(a - b);
k[a_, b_] := (a - b)/(a' - b');
g = Duichendian[d, a, e]; g' = Duichendian'[d, a, e];
sol = Solve[{k[g, b] == k[g, f], k[c, f] == -1}, {f, f'}];
Print["f=", f /. Last[sol], ", f'=", f' /. Last[sol]];
为什么第一次运行显示:
f=(((1-I) ((1+I) x^3 y-x^2 y^2-(1+I) x^2 y (0&)+x y^2 (0&)+(1+I) x^2 y x^\[Prime]-x y^2 x^\[Prime]))/(4 x^2 y-2 x y^2-2 x^2 (0&)+2 x y (0&)-y^2 (0&))), f'=-((-2 x^3 y+(1+I) x^2 y^2+2 x^3 (0&)-4 x^2 y (0&)+(2-I) x y^2 (0&)-2 x^2 y x^\[Prime]+(1+I) x y^2 x^\[Prime]+2 x^2 (0&) x^\[Prime]-2 x y (0&) x^\[Prime]+y^2 (0&) x^\[Prime])/(4 x^2 y-2 x y^2-2 x^2 (0&)+2 x y (0&)-y^2 (0&)))
再运行一次则显示:
f=((1-I) x ((1+I) x-y))/(2 x-y), f'=-(((1+I) x ((-1+I) x+y))/(2 x-y))
Mathematica 版本:12.3
平台:win10
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|