Plot2d:尝试使用 wximplicit_plot 进行绘图时,没有任何可绘制错误的内容

问题描述 投票:0回答:1

我在 macOS 13.5 上使用 wxmaxima 23.12.0 和 Maxima 5.47.0。我已成功使用

wximplicit_plot
绘制了以下内容:

wximplicit_plot(x^2+y^2=1, [x,-2,2], [y,-2,2], same_xy);

但是当我尝试以下操作时:

load(implicit_plot);

set_plot_option(same_xy);

line:y=3*x-5;
circle:x^2-6*x+y^2-8*y+22=0;

wximplicit_plot([line, circle], [x,0,5], [y,0,5]);
implicit_plot is now obsolete. Using plot2d instead:
"plot2d ([y = 3*x-5,y^2-8*y+x^2-6*x+22 = 0] = 0, [x,0,5], [y,0,5], [plot_format,gnuplot], [gnuplot_term,pngcairo], [gnuplot_preamble,"set terminal pngcairo dashed background \"white\" enhanced font \"arial,10\" fontscale 1.0 size 1200,900; set zeroaxis;; "], [gnuplot_out_file,"/var/folders/8b/b7l3tsmx2vz8559ln8sl1h080000gn/T/maxout_13645_2.png"])"
plot2d: nothing to plot for [y = 3*x-5,y^2-8*y+x^2-6*x+22 = 0] = 0.
 -- an error. To debug this try: debugmode(true);

但是如果我使用

plot2d
传递与上面相同的参数,它就可以工作。

任何人都可以发现我在调用 wximplicit_plot 的方式中是否遗漏了任何内容吗?

任何帮助将不胜感激。

math maxima wxmaxima
1个回答
0
投票

正如评论中提到的,观察到的行为是 Maxima 中的一个错误:

作为解决方法,请使用

wxplot2d
而不是
wximplicit_plot

set_plot_option(same_xy)$

line:y=3*x-5;
circle:x^2-6*x+y^2-8*y+22=0;

wxplot2d([line, circle], [x,0,5], [y,0,5]);

wxMaxima 的结果:

© www.soinside.com 2019 - 2024. All rights reserved.