Fourier transform

Fourier transform - Mathcad Fourier transform doesn't work in SMath - Messages

#1 Posted: 5/14/2026 4:19:57 PM
Caro

Caro

0 likes in 7 posts.

Group: User

Dear all,

I have a Mathcad Document about Fourier transform that I want to translate into SMath.
I already dowloaded the FFTPack plugin. I used the same functions from the Mathcad document which doesn't work in SMath.
I tried a bit but nothing is working. The error message says "The argument must be a scalar."
I attached screenshots from my SMath document and the original Mathcad document.

Does anyone have an idea or a helpful tip?

Thanks in advance

Screenshot 2026-05-14 181146.png
Screenshot 2026-05-14 180252.png
#2 Posted: 5/14/2026 4:26:36 PM
Caro

Caro

0 likes in 7 posts.

Group: User


fft_spalt_test.sm (5.42 KiB) downloaded 23 time(s).
#3 Posted: 5/14/2026 6:55:58 PM
sergio

sergio

122 likes in 340 posts.

Group: User

try to construct the vector like this

Show Spoiler


sergio
1 users liked this post
Caro 5/15/2026 7:01:47 AM
#4 Posted: 5/15/2026 7:07:59 AM
Caro

Caro

0 likes in 7 posts.

Group: User

Thank you! That worked and the error message is gone.

I'm still having trouble plotting the graph. The graph is not being displayed but there isn't any error message.
Did I overlook something? Does the rfft() function work different in SMath than in Mathcad?

Thanks in advance
#5 Posted: 5/15/2026 7:57:42 AM
sergio

sergio

122 likes in 340 posts.

Group: User

Check if it can help you. The graph has the correct shape but the values are different.fft_spalt_test(sergio).sm (10.62 KiB) downloaded 15 time(s).
sergio
1 users liked this post
Caro 5/15/2026 4:30:00 PM
#6 Posted: 5/15/2026 4:32:47 PM
Caro

Caro

0 likes in 7 posts.

Group: User

Thank you Sergio!

I'm going to try around with your file a bit more. But having the correct shape is already very helpful and good enough.

  • New Posts
  • No New Posts