matlab解方程组,作图时明明有交点,解出来却是虚数?[x,y]=solve('(1.51872*sqrt((-150-x)^2+(100-y)^2)+sqrt((52627.5135-x)^2+(1000000-y)^2))^2-(1001375.9682)^2','tan(-0.6684)-(y-100)/(x+150)','x','y')一个椭圆与直线交点.是不是

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 02:13:52
matlab解方程组,作图时明明有交点,解出来却是虚数?[x,y]=solve(''(1.51872*sqrt((-150-x)^2+(100-y)^2)+sqrt((52627.5135-x)^2+(

matlab解方程组,作图时明明有交点,解出来却是虚数?[x,y]=solve('(1.51872*sqrt((-150-x)^2+(100-y)^2)+sqrt((52627.5135-x)^2+(1000000-y)^2))^2-(1001375.9682)^2','tan(-0.6684)-(y-100)/(x+150)','x','y')一个椭圆与直线交点.是不是
matlab解方程组,作图时明明有交点,解出来却是虚数?
[x,y]=solve('(1.51872*sqrt((-150-x)^2+(100-y)^2)+sqrt((52627.5135-x)^2+(1000000-y)^2))^2-(1001375.9682)^2','tan(-0.6684)-(y-100)/(x+150)','x','y')
一个椭圆与直线交点.是不是方法用错了,求大侠解答.
写错了,应该是[x,y]=solve('1.51872*sqrt((-150-x)^2+(100-y)^2)+sqrt((52627.5135-x)^2+(1000000-y)^2)-1001375.9682','tan(-0.6684)-(y-100)/(x+150)','x','y')
算出了一组数
- 118.52682061372974085247699653957 + 1.0533345305617757285143717961041e-33*I
- 220.09338601057209292602666326014 - 1.0533112988897284034465078515513e-33*I
- 1132463.3768276476286089146745954 - 4.4867544204611779361326555231486e-39*I
2521605.9888956671204941437985018 + 7.4851375227168231240733748097014e-39*I
那个I是什么,虚数单位吗?

matlab解方程组,作图时明明有交点,解出来却是虚数?[x,y]=solve('(1.51872*sqrt((-150-x)^2+(100-y)^2)+sqrt((52627.5135-x)^2+(1000000-y)^2))^2-(1001375.9682)^2','tan(-0.6684)-(y-100)/(x+150)','x','y')一个椭圆与直线交点.是不是
求出虚数解了
还是用fsolve吧
clear all
clc
f=@(x)([1.51872*sqrt((-150-x(1))^2+(100-x(2))^2)+sqrt((52627.5135-x(1))^2+(1000000-x(2))^2)-1001375.9682;tan(-0.6684)-(x(2)-100)/(x(1)+150)]);
[x y]=fsolve(f,[0 0])