Hi,
I'm trying to calculate some value under if function, but turns out 0 for the value that I wanted to obtain from it.
Here's my coding. The Nindex and Objectthickness are array of double. When i track the n1,n2,thickness,Nnumber and Tnumber, they all shows 0.
for k := 0 to m - 1 do...
I'm trying to count the number of values falling between the X and Y min and max. So for those that fall under the condition given it will count the number and check whether it is larger than Nraysmax and Nraysmin or not. The initial value of Nraysmax is 0 and Nraysmin is Nofrays where Nrays...
Hi,
Everytime i run the programme, it shows'Invalid floating point operation' at the line, Homogeneous:=1-((Nraysmax-Nraysmin)/(Nraysmax+Nraysmin));. Can someone tell me why?
Following is the coding.
procedure TForm1.Homo(var homogeneous:double);
var
i,Nrays,ibin,jbin:integer...
Hi Everyone,
I writen a procedure which content two-dimensional dynamic array and I tried to call the procedure in another procedure. But it shows, types of actual and formal var parameters must be identical.
Here is the sample coding,
Type
MatrixArray:array of array of double;
procedure...
The coding is just an example of what I'm trying to do. Not every values in Array1 is larger than 0. So for those that are larger than 0, it would calculate A and B and insert them in Array2. For those values in Array1 that are smaller than 0, it would save as 0 in Array2.
Actually i'm trying...
Hi everyone,
I'm create an array with values in it and those values will be recalculate and put into another array. I used a 'if' function to eliminate some valuse.
The problem that i face is i don't know how to put those newly created values accordingly in the second array.
For example...
Hi everyone,
I created 2 arrays. I wanted to store some of the values in the first array in second array.
For example, the first array content 50 values and by using if statement, out of the 50 values only 5 of them will be stored in the second array. I want the values to be stored accordingly...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.