Get Help

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- unable to yield table of complex numbers 200 data ...

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-13-2020
11:03 AM

02-13-2020
11:03 AM

Hi

I am calculating the dielectric refractive of index. The data point n is 0..200

When I tried to calculate P0(n), I got [201, 1] in all the points and all the values suppose to be complex numbers like showing as Pw(n). Does anyone know what happened?

Hong

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-13-2020
01:19 PM

02-13-2020
01:19 PM

The indication [201,1] means that that 'value' is an array of 201 rows, 1 column.

In the definition of P0(n) you use two vectors in the argument of the exponent, they are f and da, but note that while you specify a single element of f (namely fn), you specify the entire array da (no n).

This means that when evaluating P0(n), for each of the 201 values of range n, you get an array of the length of da (which is 201 elements).

If you change the definition of P0(n) to select only one element of da (used dan), or you define da without n, so "da:=0.1 mm", you should get the results you expect.

Success!

Luc

2 REPLIES 2

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-13-2020
01:19 PM

02-13-2020
01:19 PM

The indication [201,1] means that that 'value' is an array of 201 rows, 1 column.

In the definition of P0(n) you use two vectors in the argument of the exponent, they are f and da, but note that while you specify a single element of f (namely fn), you specify the entire array da (no n).

This means that when evaluating P0(n), for each of the 201 values of range n, you get an array of the length of da (which is 201 elements).

If you change the definition of P0(n) to select only one element of da (used dan), or you define da without n, so "da:=0.1 mm", you should get the results you expect.

Success!

Luc

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

02-13-2020
01:34 PM

02-13-2020
01:34 PM

Re: unable to yield table of complex numbers 200 data points (Mathcad 15)

Thank you very much

You save my life today!!!!