10-19-2019 02:55 AM
Does anyone have a program that will perform these two conversions? I tried to write them, but have not yet succeeded. Alternatively I can send (privately) the program(s) that I wrote if someone can help me find the problem.... Thanks in advance.
Solved! Go to Solution.
10-19-2019 04:26 AM
DuckDuckGo gives this...
AND there are answers so you may be able to fine tune your code.
Star/Delta I haven't done in decades, so I could not help with the code.
10-19-2019 07:20 AM
Hi!, @EladLending :
You can see one video with an idea for program in Spanish Language from … https://www.youtube.com/watch?v=lS9yBd-rMdc
Too two progams for convertion from … https://www.hpcalc.org/search.php?query=Delta+Wye&prime=1
Have a nice day !.
@Maké (Technical Advisor Premium - HP Program Top Contributor).
Provost in HP Spanish Public Forum ... https://h30467.www3.hp.com/
10-26-2019 10:43 AM
This is a simple function that is easy to code in HPPL. Here is the first conversion.
10-27-2019 09:32 AM
I do not know why you call the DIM() function three times with the global complex variables Z1 through Z3. You do not use the result of the function.
You use three global complex variables Z1 through Z3 through assignment. These built-in variables are no longer available for other uses. The use DY function will over-write any previous values stored there.
You compute the denominator three times. It won't make much difference in a small problem such as this one but it is not as efficient as computing it once, saving it, and then using the result when necessary.
You use a global matrix variable M9. Why did you store the three results in complex variables only to immediately store them in the first three elements of M9? You could have simply assigned the result of each conversion directly to a matrix element.
The form M9(1) is a bad form. Matrix subscripts must use the row and column index. M9(1,1) would properly reference the first element in the matrix. Use the [[ ]] form for a matrix and the [ ] form for a vector.
I generally prefer to not use global variables in a function definition. I prefer to have specific input parameters and return a single specific result while using local variables for computations within the definition of the function.
My comments have mostly to do with personal style, not strict computer programming rules. If your program works and you like it, then it is a good program!