cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Complex number in text format into Mathcad

ValeryOchkov
24-Ruby IV

Complex number in text format into Mathcad

I had a need to convert a small text file into a Mathcad 15.
I need to transfer a text file a number like this:
z23: = 0 + i * 0
z24: = 1 + i * 0
z25: = 1 + i * 0
z26: = 1 + i * 0
z27: = 0 - i * 1

1 ACCEPTED SOLUTION

Accepted Solutions

Hi,

 

Last attempt did not allow for negative inputs.

New file shows how to deal with negative real components and negative imaginary components

 

Cheers

Terry

View solution in original post

5 REPLIES 5

 

Hi

 

Reads in text file and converts to complex number

Hi,

 

Last attempt did not allow for negative inputs.

New file shows how to deal with negative real components and negative imaginary components

 

Cheers

Terry

Thanks to all!

Sorry,

but it was a question from one my reader.

I am waiting his reaction! Is your answer good for him?

The letter from my Mathcad-friend

Здравствуйте. На форуме ptc.com  дали два ответа, оба работают, как мне нужно 🙂 Спасибо вам и terryhendicott

Hello.
The forum ptc.com gave two answers, both work as I need 🙂 Thank you and terryhendicot
Top Tags