Recent content by hobmarcus
-
H
Fortran Fortran - passing unknown array to subroutine
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- hobmarcus
- Post #5
- Forum: Programming and Computer Science
-
H
Fortran Fortran - passing unknown array to subroutine
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...- hobmarcus
- Thread
- Array Fortran Subroutine
- Replies: 5
- Forum: Programming and Computer Science
-
H
Fortran How to Merge and Sort Two Fortran Arrays?
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.- hobmarcus
- Post #5
- Forum: Programming and Computer Science
-
H
Fortran How to Merge and Sort Two Fortran Arrays?
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- hobmarcus
- Post #3
- Forum: Programming and Computer Science
-
H
Fortran How to Merge and Sort Two Fortran Arrays?
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...- hobmarcus
- Thread
- Arrays Fortran
- Replies: 5
- Forum: Programming and Computer Science
-
H
Undergrad Square wave and sine wave -- How standing waves are formed?
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 ?- hobmarcus
- Thread
- Sine Sine wave Square Square wave Standing waves Wave Waves
- Replies: 4
- Forum: Other Physics Topics
-
H
Normal modes of continuous systems
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...- hobmarcus
- Thread
- Continuous Modes Normal Normal modes Systems
- Replies: 1
- Forum: Introductory Physics Homework Help
-
H
Analyzing a Traveling Wave: Frequency, Wavelength, and Direction
So.. what you mean is , I should assume that k=π/8 +2nπ ? Also, how about part D? is there anyway to tell where is the wave going?- hobmarcus
- Post #5
- Forum: Introductory Physics Homework Help
-
H
Analyzing a Traveling Wave: Frequency, Wavelength, and Direction
I assumed that π/8 = k and just find λ with k=2π/λ?- hobmarcus
- Post #3
- Forum: Introductory Physics Homework Help
-
H
Analyzing a Traveling Wave: Frequency, Wavelength, and Direction
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)...- hobmarcus
- Thread
- Wave
- Replies: 4
- Forum: Introductory Physics Homework Help