我在 JSXGraph 中定义了函数图和直线之间的交集。当我移动直线时,交叉点会按预期更新其位置。但是当我移动函数图时,交叉点消失了。我需要在这里做一些特殊的配置吗?这是 jsxgraph 的错误吗?这是该问题的实时说明:
http://maldive.ccnmtl.columbia.edu/js/functiongraph-intersection.html
这是代码:
var l1 = board.create('line', [
[2.5, 2.5],
[3.5, 3.5]
], {
name: 'line 1',
withLabel: true,
label: { position: 'rt', offset: [10, -20] },
strokeColor: 'blue',
strokeWidth: 2,
fixed: false
});
var f = function(x) {
var alpha = 0.3;
return (1 - alpha) *
(1.4 *
1.6 ** alpha) *
(x ** -alpha);
};
var l2 = board.create('functiongraph', [f], {
name: 'line 2',
withLabel: true,
strokeWidth: 2,
strokeColor: 'orange',
fixed: false
});
var i = board.create('intersection', [l1, l2, 0], {
name: 'intersection',
fixed: true,
showInfobox: false
});