Skip to main content
24-Ruby IV
Solved

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

terryhendicott
21-Topaz II

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

4 replies

terryhendicott
21-Topaz II

Hi

 

Reads in text file and converts to complex number

Translate
terryhendicott
21-Topaz II

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

Translate
24-Ruby IV

Thanks to all!

Sorry,

but it was a question from one my reader.

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

Translate
24-Ruby IV

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
Translate