gpt4 book ai didi

Maple 使用 ShowSolution 函数计算不正确

转载 作者:行者123 更新时间:2023-12-01 15:00:40 24 4
gpt4 key购买 nike

Maple 在使用 student.calculus1 包中的 ShowSolution 函数时错误地解决了以下问题。当 x 变量的幂为奇数或当我写 sin(n*x) 但当我写 x^(even number)cos(nx) 时,它工作正常,它计算不正确。或者当我输入数字而不是 n 时,它计算正确。我想念什么吗? :| Here is a screenshot:

When assume(n::integer). Maple says the answer is 0 which is also incorrect

最佳答案

看起来像一个错误(我已经提交了一个错误报告),在第一步就出错了。

作为解决方法,您可以先执行此操作,

restart;
with(Student:-Calculus1):

ee := Int( x^2*cos(n*x), x=-Pi..Pi ):

new := rhs( Rule[parts, x^2, sin(n*x)/n]( ee ) ) assuming n::integer;

-(Int(2*sin(n*x)*x/n, x = -Pi .. Pi))

ShowSolution( new ) assuming n::integer;

在最后一步生成 4*(-1)^n*Pi/n^2

或者在n的假设下执行那些步骤,然后在假设n::integer简化最终结果。

关于Maple 使用 ShowSolution 函数计算不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52128991/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com