FORTRAN Learning 1-Data Types

Source: Internet
Author: User

As the first advanced language, Fortran still plays an irreplaceable role in scientific computing. Recently, I tried to use Math.net to perform matrix operations in C #. Although operators are overloaded and supported by the corresponding mathematical libraries, I feel that the convenience of matrix operations is lacking compared with Fortran. In addition, compared with C/C ++, Fortran makes scientific computing easier to achieve high efficiency without considering various complex factors.

 

However, at present, Fortran lacks a convenient IDE. VS2010 does not provide automatic completion, and there are no matching options. The development experience is too far from that of C.

I can only make a simple Vim configuration and write the first Fortran learning program.

 

Blog Code coloring does not support Fortran. Who can recommend a Windows Live code coloring plug-in that supports Fortran?

 

! Fortran Vim Exercise 1 data type program test1implicit none! The data type implicit [im 'plisit] must be declared: the integer: int_1 = 5! Integer ['intid interval] integer (kind = 4): int_2! 4-byte integer real: real_1, real_2! 4-byte single precision real (kind = 8): real_3! 8-byte dual-precision logical: logical_1! Boolean logical type character (len = 20): char_1! Length: 20. complex (kind = 8): complex_1! Print *, int_1! Output = Write (*, *) int_1read (*, *) char_1! Read user input end program test1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.