[Programming] This values can not be compared
[Programming] This values can not be compared
(OP)
I've got a program that defines d.nom`[i if W.p`[i < 0,02 and if u.w2`[i > 2m/s.
The values W.p` cannot be compared with 0,02... that is what mathcad responds with.
I checked that the problem could be with the array of W.p`, cos it contains the complex numbers.
Does anyone know how to create a function that substracts array as so to have only REAL numbers in the final array? By the way, the complex numbers are not placed in the array one after another so any substract can not be used.
The values W.p` cannot be compared with 0,02... that is what mathcad responds with.
I checked that the problem could be with the array of W.p`, cos it contains the complex numbers.
Does anyone know how to create a function that substracts array as so to have only REAL numbers in the final array? By the way, the complex numbers are not placed in the array one after another so any substract can not be used.
RE: [Programming] This values can not be compared
RE: [Programming] This values can not be compared
Thanks for a prompt answer anyways, any other suggestions?
RE: [Programming] This values can not be compared
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize
RE: [Programming] This values can not be compared
MR:=Re(M) and use the vectorize operator _ to make it apply to each element in matrix M.
If you want the imaginary part, use Im instead of Re.
I can't load your example because I have Mathcad 13.
RE: [Programming] This values can not be compared
I didn't open your sheet, but that was the fix for that message in one of my programs.
David
RE: [Programming] This values can not be compared
Is this for school? How do you expect to get help by noly providing a tiny fraction of the problem?
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize
RE: [Programming] This values can not be compared
I can of course give you all my stuff, but it has 80 pages in Mathcad. The problem concerns creating a program to select proper heat exchanger from heat exchangers' standard.
All the data for this program is located in excel or come from excel and has been converted a couple of times in Mathcad. There are 10 documents in excel with different data for this project. So there is why i don't have defined rest of variables.
I will copy those final data needed for this program and enclose here.
I will try with Re function afterwards.
RE: [Programming] This values can not be compared
Obviously, you cannot directly compare a complex value to a real value.
Why are there complex values at all?
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize
RE: [Programming] This values can not be compared
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize
RE: [Programming] This values can not be compared
I've fixed the problem on my own.