Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dongli

    orthogonal multinomials least squares questure

    Hi mikrom, Oh, I see. [dazed] You can plot the result of 2D-case. When the data points are sampled from parabolic surface, the approximated surface should fit the original one very well (I suppose so). Since the basis function is multinomial, the information contained in this approximation...
  2. dongli

    orthogonal multinomials least squares questure

    Hi, mikrom, What do you mean about the difference between 1D-case and 2D-case? The program is running normally, the only problem is the record length setting at the open file statement. You can adjust it according to your computing environment. Thanks for replying! DONG Li
  3. dongli

    orthogonal multinomials least squares questure

    Hi, guys, I have implemented the least squares using orthogonal multinomials basis. The result is ok in 1D problems, but not good in 2D. The structure of the codes is: a module file - orthogonal_multinomials_least_squares.f90 a test main file - test_OMLS_1d.f90 & test_OMLS_2d.f90 program...
  4. dongli

    allocatable array problem

    Thanks for explanation. I will keep it in mind when programming! : )
  5. dongli

    allocatable array problem

    Hi, I made a small test program for allocatable array, as following [code] real, allocatable :: a(:) allocate(a(2)) a(1) = 1.0 a(2) = 2.0 a(3) = 3.0 ! This can be accessed!!! write(*, *) a(1), a(2) write(*, *) a(3) [\code] The result is: [code] 1.00000000000000...
  6. dongli

    calculation ov derivatives from a data set

    Hi guys, It is so alive, here! I have faced this problem, too, several weeks ago. My one dimensional data is irregularly distributed, so I used cubic smooth spline (in Matlab) to make an approximation of the continuous distribution, then made samples (dense enough) for derivative calculation...
  7. dongli

    extract one byte from real

    Nice! I see. Thanks a lot!
  8. dongli

    extract one byte from real

    Thanks xwb, it works! real a integer(1) b(4) b = transfer(a, b) BUT, b(1) is the lowest byte of a, and b(4) is the highest one. The order is a little strange.
  9. dongli

    extract one byte from real

    Hi, I want to extract one specific byte from a 4-bytes real variable. How to do it? For example: real :: a = 42 integer(1) :: b a: 01000010001010000000000[00000000] -> b Thanks for help!

Part and Inventory Search

Back
Top