08-08-2018 04:28 AM
GerdW,
how do you divide two sum formulas`?
08-08-2018 04:37 AM
08-08-2018 04:40 AM
AnnihilationSpectrum,
It will be much better if you show YOUR code and data values instead of just asking "how to do"
08-08-2018 04:52 AM
dear artem and gerdw,
i build gerdw solution. I wrote numbers on the panel randomly and the results always give a zero.
08-08-2018 05:12 AM - edited 08-08-2018 05:14 AM
Hi.
It's normal that you obtain that result as you make a sum from k to kr with k > kr, which is 0.
You also have to be careful as you didn't invert one of the entry on the compoundmath so you're doing only multiplications here and not a multiplication and a division.
P.S : you can also press ctrl+u once to clean-up a bit this diagram.
08-08-2018 05:13 AM
You write all 2354 element for "n", or create "zero filled" array with last element = 125?
And also you always take array size = (A-B) where A<B, so your array sunset is empty (length less than zero). Of course summ will 0.
08-08-2018 07:30 AM
Hi Anni,
i build gerdw solution.
No, you didn't!
As I said before: look carefully at this CompoundMath node! You can invert inputs and output of that function…
I wrote numbers on the panel randomly and the results always give a zero.
When your indices (k, kr) are in the order of 11000 then your input array "n" needs atleast that much elements. Did you input enough elements for the array???
You should use "known" inputs instead of some "random" ones!
08-09-2018 06:51 AM
Hello again. Left and right sides are not equal in spectrum. There's a background on the left. By using spectral data, they want me to implement the front panel to the formula in the picture. they want to match the left side of the spectrum to the right. im sorry my bad english.
08-09-2018 07:41 AM
@Artem.SPb wrote:
AnnihilationSpectrum,
It will be much better if you show YOUR code and data values instead of just asking "how to do"
Why? How to, is what learning is all about! Now, showing what's been failing, helps us teach, but I think that learning is preferable to trick or treating on these forums.
08-09-2018 07:46 AM
Hi Anni,
they want me to implement the front panel to the formula in the picture.
So you should do your job!
they want to match the left side of the spectrum to the right.
Then apply that formula if it has been given to you!
(From the scale labels it rather looks like a histogram.)