Computional Methods Problem with Fortran programming

In summary, the conversation discusses a project involving the representation of permutations as a data structure, using a module with declarations, type definitions, functions, and subroutines. The project also includes options such as creating subroutines to invert a permutation, convert it to cycle notation, and determine its order, as well as discussing the representation and calculation of other algebraic structures. The conversation also mentions using C++ instead of FORTRAN and provides a reference for generating permutations. The person asking the question is seeking help with starting the project.
  • #1
kevek
13
0
Is there anyone familiar with Fortran programming, who can give me some simple ideas or resources how can I strart this project? Many thanks


Data Structures - The Permutation Group
In this project, the group of permutations on N elements (where N is probably fairly small, perhaps N= 9 or less) is represented as a data structure. The main program employs the USE command to access a module containing the declarations, type definitions, functions and subroutines.
The module should use operator overloading to make * the multiplication operator between permutations, and ** a permutation taken to some ower. The module should also have a function or subroutine that determines the order of the permutation.

Options
1. Create a subroutine that inverts a permutation.
2. Create a subroutine that converts a permutation to cycle notation.
3. Create a subroutine that determines whether a permutation is even or odd.
4. Discuss how other algebraic structures could be represented and calculated.
 
Physics news on Phys.org
  • #3
hi kevek.
did u figure how to start this ? i need your help with this question.
tq
 

1. What is Fortran programming and what are its main uses?

Fortran (short for Formula Translation) is a high-level programming language primarily used for scientific and engineering applications. It is particularly well-suited for numerical computations and is commonly used in computational methods for solving complex mathematical problems.

2. What are some common problems encountered when using Fortran for computational methods?

Some common problems with Fortran programming in computational methods include difficulties with debugging, maintaining and updating legacy code, and ensuring efficient memory allocation and usage.

3. How does Fortran compare to other programming languages commonly used in scientific computing?

Fortran is often preferred for scientific computing due to its efficient handling of mathematical operations and its ability to work with large datasets. It is also considered more user-friendly compared to low-level languages such as C or Assembly.

4. Are there any alternatives to Fortran for computational methods?

Yes, there are several alternatives to Fortran for computational methods, such as Python, MATLAB, and Julia. These languages offer more modern and user-friendly syntax, but may not be as efficient as Fortran for certain types of calculations.

5. What resources are available for learning Fortran and improving skills in computational methods?

There are many online tutorials, courses, and books available for learning Fortran and improving skills in computational methods. Additionally, there are online forums and communities where programmers can share tips and advice on using Fortran for scientific computing.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
5
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • Programming and Computer Science
Replies
4
Views
590
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Programming and Computer Science
Replies
8
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
0
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
10
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
4K
  • Programming and Computer Science
Replies
2
Views
2K
Back
Top