<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CFFTとdftの関係 in Mathcad</title>
    <link>https://community.ptc.com/t5/Mathcad/Relationship-between-CFFT-and-dft/m-p/990420#M215513</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/893665"&gt;@TT_12301010&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;mathcad14でCFFTを使って計算しています。mathcad prime10ではCFFTよりdtfを使用することを推奨しています。&lt;/P&gt;
&lt;P&gt;しかしCFFTとdftではスケーリングが異なります。&lt;/P&gt;
&lt;P&gt;CFFTからdftに変更し、計算結果を同じにするために、どのようにプログラムを変更したらいいか教えていただけませんか？&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;(Divide dft results by the number of samples) to convert to CFFT results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take the idft of the (CFFT multiplied by the number of samples).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024 12 22 A.png" style="width: 999px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/116060i6912EB3B41F7DB8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024 12 22 A.png" alt="2024 12 22 A.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024 12 22 B.png" style="width: 693px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/116061i4BA16C2E9C3FC0CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024 12 22 B.png" alt="2024 12 22 B.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;</description>
    <pubDate>Sun, 22 Dec 2024 14:34:22 GMT</pubDate>
    <dc:creator>StuartBruff</dc:creator>
    <dc:date>2024-12-22T14:34:22Z</dc:date>
    <item>
      <title>Relationship between CFFT and dft</title>
      <link>https://community.ptc.com/t5/Mathcad/Relationship-between-CFFT-and-dft/m-p/990398#M215511</link>
      <description>&lt;P&gt;I am using CFFT for calculations in Mathcad 14. Mathcad Prime 10 recommends using dtf rather than CFFT.&lt;/P&gt;
&lt;P&gt;However, CFFT and dft have different scaling.&lt;/P&gt;
&lt;P&gt;Could you tell me how to change the program to change from CFFT to dft and get the same calculation results?&lt;/P&gt;
&lt;P&gt;--------------------------------------------&lt;/P&gt;
&lt;P&gt;Translated text from Japanese to English using google translate -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Subject -&amp;nbsp;CFFTとdftの関係&lt;/P&gt;
&lt;P&gt;Body -&amp;nbsp;mathcad14でCFFTを使って計算しています。mathcad prime10ではCFFTよりdtfを使用することを推奨しています。&lt;/P&gt;
&lt;P&gt;しかしCFFTとdftではスケーリングが異なります。&lt;/P&gt;
&lt;P&gt;CFFTからdftに変更し、計算結果を同じにするために、どのようにプログラムを変更したらいいか教えていただけませんか？&lt;/P&gt;
&lt;P&gt;-By Community Moderation Team&lt;/P&gt;
&lt;P&gt;--------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 05:33:39 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Relationship-between-CFFT-and-dft/m-p/990398#M215511</guid>
      <dc:creator>TT_12301010</dc:creator>
      <dc:date>2024-12-23T05:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: CFFTとdftの関係</title>
      <link>https://community.ptc.com/t5/Mathcad/Relationship-between-CFFT-and-dft/m-p/990420#M215513</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/893665"&gt;@TT_12301010&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;mathcad14でCFFTを使って計算しています。mathcad prime10ではCFFTよりdtfを使用することを推奨しています。&lt;/P&gt;
&lt;P&gt;しかしCFFTとdftではスケーリングが異なります。&lt;/P&gt;
&lt;P&gt;CFFTからdftに変更し、計算結果を同じにするために、どのようにプログラムを変更したらいいか教えていただけませんか？&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;(Divide dft results by the number of samples) to convert to CFFT results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take the idft of the (CFFT multiplied by the number of samples).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024 12 22 A.png" style="width: 999px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/116060i6912EB3B41F7DB8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024 12 22 A.png" alt="2024 12 22 A.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024 12 22 B.png" style="width: 693px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/116061i4BA16C2E9C3FC0CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024 12 22 B.png" alt="2024 12 22 B.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2024 14:34:22 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Relationship-between-CFFT-and-dft/m-p/990420#M215513</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2024-12-22T14:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: CFFTとdftの関係</title>
      <link>https://community.ptc.com/t5/Mathcad/Relationship-between-CFFT-and-dft/m-p/990524#M215525</link>
      <description>&lt;P&gt;Hi just wanted to share this.&lt;/P&gt;
&lt;P&gt;I have used a C++ FFT library called fftw3 and have written a custom DLL function that can be called from Prime.&amp;nbsp; Custom function is called myCFFT and takes a complex array as input and returns a complex array as output.&amp;nbsp; Using Stuart's sheet and definition of y as a 128 value sequence get the following timings. myCFFT running in&amp;nbsp; C++ is four times as fast as the Prime function.&amp;nbsp; There is calling overhead in the myCFFT function meaning time is gained for larger sequences and repeated CFFT's&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This means it is possible with larger sequences and multiple sequences a large increase in speed for the OP's previous post is possible.&amp;nbsp; Will work on this over the next few days.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 329px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/116102i867281393C1A8666/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Translation" data-ved="2ahUKEwi85Lam-b2KAxXOTWwGHY2GBVYQ3ewLegQIAxAU" aria-label="Translated text: こんにちは、これを共有したかっただけです。

fftw3 という C++ FFT ライブラリを使用し、Prime から呼び出せるカスタム DLL 関数を作成しました。&amp;nbsp; カスタム関数は myCFFT と呼ばれ、入力として複素数配列を受け取り、出力として複素数配列を返します。&amp;nbsp; Stuart のシートを使用し、y を 128 の値のシーケンスとして定義すると、次のタイミングが得られます。 C++ で実行される myCFFT は、Prime 関数の 4 倍高速です。&amp;nbsp; myCFFT 関数には呼び出しオーバーヘッドがあり、より大きなシーケンスや CFFT の繰り返しで時間がかかることを意味します。



これは、より大きなシーケンスや複数のシーケンスを使用すると、OP の以前のポストの速度を大幅に向上できる可能性があることを意味します。&amp;nbsp; 今後数日かけてこれに取り組む予定です。"&gt;&lt;SPAN class="Y2IQFc"&gt;こんにちは、これを共有したかっただけです。

fftw3 という C++ FFT ライブラリを使用し、Prime から呼び出せるカスタム DLL 関数を作成しました。&amp;nbsp; カスタム関数は myCFFT と呼ばれ、入力として複素数配列を受け取り、出力として複素数配列を返します。&amp;nbsp; Stuart のシートを使用し、y を 128 の値のシーケンスとして定義すると、次のタイミングが得られます。 C++ で実行される myCFFT は、Prime 関数の 4 倍高速です。&amp;nbsp; myCFFT 関数には呼び出しオーバーヘッドがあり、より大きなシーケンスや CFFT の繰り返しで時間がかかることを意味します。



これは、より大きなシーケンスや複数のシーケンスを使用すると、OP の以前のポストの速度を大幅に向上できる可能性があることを意味します。&amp;nbsp; 今後数日かけてこれに取り組む予定です。&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Dec 2024 13:01:14 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Relationship-between-CFFT-and-dft/m-p/990524#M215525</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2024-12-23T13:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: CFFTとdftの関係</title>
      <link>https://community.ptc.com/t5/Mathcad/Relationship-between-CFFT-and-dft/m-p/991904#M215667</link>
      <description>&lt;P&gt;Hello &lt;SPAN style="color:var(--ck-color-mention-text);"&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/893665"&gt;@TT_12301010&lt;/a&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you have some &lt;A href="https://community.ptc.com/t5/Mathcad/Relationship-between-CFFT-and-dft/m-p/990420#M215513" target="_blank"&gt;responses&lt;/A&gt; from some community members. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vivek N.&lt;BR /&gt;Community Moderation Team.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 06:15:14 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Relationship-between-CFFT-and-dft/m-p/991904#M215667</guid>
      <dc:creator>vnamboodheri</dc:creator>
      <dc:date>2025-01-06T06:15:14Z</dc:date>
    </item>
  </channel>
</rss>

