如何使用枫木求解方程归一化系数

发布于 2025-01-30 09:17:46 字数 503 浏览 6 评论 0原文

我想要求解决方案的归一化系数 f(x)

Mathematica 中的实现方法如下:

f[x] := Sin[(n Pi x)/(2 a)];
norm = FullSimplify[1/Integrate[Abs[f[x]]^2, {x, 0, a}], n \[Element] Integers]

最终结果如下: 2/a

我想在 Maple 中实现相同的功能,并尝试了以下内容:

assume(n::posint);
psi := x -> sin(1/2*n*pi*x/a);
c := 1/int(abs(psi(x))^2, x = 0 .. a);
simplify(solve(c = 1, a));

是否有一个很好的方法来处理它枫?

I want to ask for the normalization coefficient of the solution f(x).

The implementation method in Mathematica is as follows:

f[x] := Sin[(n Pi x)/(2 a)];
norm = FullSimplify[1/Integrate[Abs[f[x]]^2, {x, 0, a}], n \[Element] Integers]

The final results are as follows:
2/a

I want to implement the same function in Maple, and have tried the following:

assume(n::posint);
psi := x -> sin(1/2*n*pi*x/a);
c := 1/int(abs(psi(x))^2, x = 0 .. a);
simplify(solve(c = 1, a));

Is there a good way to deal with it if it is implemented with Maple?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光沙漏 2025-02-06 09:17:46
restart;

kernelopts(version);

   Maple 2022.0, X86 64 LINUX, Mar 8 2022, Build ID 1599809

assume(n::posint);
f := abs(sin(1/2*n*Pi*x/a))^2:

simplify(combine(1/int(convert(f,Heaviside,x),
                       x=0..a)));

        2
        -
        a

simplify(combine(1/int(f,x=0..a)))
   assuming a::real;

        2
        -
        a
restart;

kernelopts(version);

   Maple 2022.0, X86 64 LINUX, Mar 8 2022, Build ID 1599809

assume(n::posint);
f := abs(sin(1/2*n*Pi*x/a))^2:

simplify(combine(1/int(convert(f,Heaviside,x),
                       x=0..a)));

        2
        -
        a

simplify(combine(1/int(f,x=0..a)))
   assuming a::real;

        2
        -
        a
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文