Skip to main content
24-Ruby IV
October 11, 2017
Solved

Complex number in text format into Mathcad

  • October 11, 2017
  • 3 replies
  • 1928 views

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

Best answer by terryhendicott

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

3 replies

21-Topaz II
October 12, 2017

Hi

 

Reads in text file and converts to complex number

21-Topaz II
October 12, 2017

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

24-Ruby IV
October 13, 2017

Thanks to all!

Sorry,

but it was a question from one my reader.

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

24-Ruby IV
October 13, 2017

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