But is there a way for me to pass the third_array to the subroutine first, and then allocate it? because i wantto use do loop to find the common number of each data set and assign them into third array actually. It is not directly related to the size of d1,d2
Im trying to pass an unknown size of array to the subroutine. Then I will define the size of array in subroutine and pass it back to main program. I tried to use interface but the complier said invalid memory reference
or Explicit interface required for ' ' at (1): allocatable argument
. Any...
First, I tried to use do loop to compare each value in both array and the write out each intersect value. But I do not know how to put them together into an array since the size of this intersect array varies if the data change.
thanks you for answering my question. It helps a lot. However, Another subroutine is required to find the intersection of them and combined it into 1 array. Any suggestion or help please
I have 2 set of data (from different files) and I allocate each set of data to array in my main program. But now I want to merge those 2 array and sort them in ascending orders in my sub program. What should I do? I know how to sort array in ascending orders, but i don't know how to merge those...
Why do the sound waves reflect and form standing wave when they travel along a string with sinusoidal waveform?
But they do not reflect back when they are in square waveform ?
Homework Statement
A room has two opposing walls which are tiled. The remaining walls, floors, and ceiling are lined with sound-absorbent material. The lowest frequency for which the room is acoustically resonant is 50Hz.
(a) Complex noise occurs in the room which excites only the lowest two...
Homework Statement
Two points on a string are observed as a traveling wave passes. The points are at x1 = 0 and x2 = 1 m. The two points are known to be less than one wavelength apart. The transverse motions of the two points are observed to be y1=0.2 sin 3πt
y2=0.2 sin (3πt+π/8)
(a)...