HomemadeTurbo - DIY Turbo Forum

HomemadeTurbo - DIY Turbo Forum (https://www.homemadeturbo.com/)
-   General Discussion (https://www.homemadeturbo.com/general-discussion-6/)
-   -   anybody using FORTRAN programming language...... (https://www.homemadeturbo.com/general-discussion-6/anybody-using-fortran-programming-language-86369/)

beaker 11-26-2007 02:14 PM

anybody using FORTRAN programming language......
 
the class work has been piling on and i have a program to do this week along with a final exam first thing next week...


just curious if anyone here has experience with it

J-SMITH69 11-26-2007 02:17 PM

Re: anybody using FORTRAN programming language......
 
yea in 1967

TorganFM 11-26-2007 02:18 PM

Re: anybody using FORTRAN programming language......
 
I did a very small amount of Fortran in my algorithms class, but we mostly used Matlab. What do you need to know? Honestly the best way to learn how to use commands is to look up some online tutorials and example code.

beaker 11-26-2007 02:25 PM

Re: anybody using FORTRAN programming language......
 
yea. i know its pretty much outdated technology......this is pretty much the intro to mechanical engineering programming


my problem is arrays and im having a little bit of trouble with subroutines.


right now im looking at INTEL's online reference book. hopefully this helps me out a little bit


TorganFM 11-26-2007 02:43 PM

Re: anybody using FORTRAN programming language......
 
IIRC Fortran addresses arrays backwards or something like that. Like if you load an array and then call for that array to output it starts outputting from the end toward the beginning.

Jorsher 11-26-2007 04:00 PM

Re: anybody using FORTRAN programming language......
 

Originally Posted by TorganFM
IIRC Fortran addresses arrays backwards or something like that. Like if you load an array and then call for that array to output it starts outputting from the end toward the beginning.

If you know the size of the array, get the address and move the pointer backwards to read it normally. Or do they store arrays backwards as well?

I've never learned FORTRAN or even looked at it's code, because I thought it was an ancient language that nobody uses anymore... Sorry, can't help ya. Like someone else said, looking at other people's code (preferably commented) is the best way to figure crap out.

bigdaddyvtec 11-26-2007 04:13 PM

Re: anybody using FORTRAN programming language......
 
hahaha In like 1995 it was still offered, as was cobol and pascal...... I took a pascal class back in the day, it was replaced by C.

beaker 11-26-2007 04:19 PM

Re: anybody using FORTRAN programming language......
 
lol..... yea i took C++ back in high school 4 years ago.....


but like i said...fortrans language evidently is a step towards the engineering classes....i believe we use ProEngineering



cant remember..but i do know that its the same program that Toyota engineers use

TorganFM 11-26-2007 04:19 PM

Re: anybody using FORTRAN programming language......
 
Fortran isn't really as outdated as a lot of people make it seem. It has its place, like many other languages. C is definitely more versatile, but when you're doing huge mathematical algorithms with billions of calculations Fortran can get them done much faster because it's routines are so simple. When you're paying $10k/hr to use a supercomputer for research you want to use something as fast as Fortran, even if it takes a lot longer to program. That's one thing I found incredible about Matlab and Maple. Those programs would lock up a basic computer when doing a million iterations. Fortran on the other hand would spit out the answer in 10 seconds.

J-SMITH69 11-26-2007 04:21 PM

Re: anybody using FORTRAN programming language......
 

In late 1953, John W. Backus submitted a proposal to his superiors at IBM to develop a more efficient alternative to assembly language for programming their IBM 704 mainframe computer. A draft specification for The IBM Mathematical Formula Translating System was completed by mid-1954. The first manual for FORTRAN appeared in October 1956, with the first FORTRAN compiler delivered in April 1957

Jorsher 11-26-2007 04:30 PM

Re: anybody using FORTRAN programming language......
 

Originally Posted by TorganFM
Fortran isn't really as outdated as a lot of people make it seem. It has its place, like many other languages. C is definitely more versatile, but when you're doing huge mathematical algorithms with billions of calculations Fortran can get them done much faster because it's routines are so simple. When you're paying $10k/hr to use a supercomputer for research you want to use something as fast as Fortran, even if it takes a lot longer to program. That's one thing I found incredible about Matlab and Maple. Those programs would lock up a basic computer when doing a million iterations. Fortran on the other hand would spit out the answer in 10 seconds.

Depends what library's you're using to do your C math calculations. As long as C has been out, and as heavily as it's been used, I doubt it's significantly slower than FORTRAN. C is fairly low level and what ever isn't "low level" enough you can use assembly for. I don't believe a language written in 1957 for computers decades old will be faster than languages written in the last decade. I'm sure it has it's uses though. I'll stick with C++.

beaker 11-26-2007 05:29 PM

Re: anybody using FORTRAN programming language......
 
yea RS. it was first written in 1957 or whatever. but it has been revised countless times. i believe the most recent was 2003, could be wrong.....



thats like saying camaro was first sold in 1966.......therefore your's is completely outdated and a piece of ----

well.....the latter part may be true anyways

TorganFM 11-26-2007 05:43 PM

Re: anybody using FORTRAN programming language......
 
It's more like saying the SBC is a piece of ----, because it's been around forever and revised so many times.

beaker 11-26-2007 05:45 PM

Re: anybody using FORTRAN programming language......
 
i just wanted to get an opportunity to cal RS maro a peice of ---- without going out of context

J-SMITH69 11-26-2007 05:54 PM

Re: anybody using FORTRAN programming language......
 

Originally Posted by dtrain
yea RS. it was first written in 1957 or whatever. but it has been revised countless times. i believe the most recent was 2003, could be wrong.....

thats like saying camaro was first sold in 1966.......therefore your's is completely outdated and a piece of ----

well.....the latter part may be true anyways

apples oranges

8)


fork 11-26-2007 08:51 PM

Re: anybody using FORTRAN programming language......
 
taking that class is a complete waste of time and you should drop it or if its required you need to question who the ---- at your school thinks its useful

TorganFM 11-26-2007 08:54 PM

Re: anybody using FORTRAN programming language......
 
I don't follow your train of thought. How is learning how to do basic programming and following mathematical algorithms a complete waste of time? I learned some really neat interpolation methods and root finding methods in my class, so I would say it's worth it. There are some things you just can't do in mathematics without using numerics, and that's where computers come in.

Jorsher 11-26-2007 08:56 PM

Re: anybody using FORTRAN programming language......
 

Originally Posted by fork
taking that class is a complete waste of time and you should drop it or if its required you need to question who the ---- at your school thinks its useful

college requires a lot of useless classes.

beaker 11-26-2007 09:37 PM

Re: anybody using FORTRAN programming language......
 
useless.....yes and no



they know that your never going to use FORTRAN in any respectable job. but its one of those weeding out processes. if you cant cut it with this then your wasting your time.

also, its a step method. this helps teach you how to form logical thinking

Jorsher 11-26-2007 11:39 PM

Re: anybody using FORTRAN programming language......
 

Originally Posted by dtrain
useless.....yes and no



they know that your never going to use FORTRAN in any respectable job. but its one of those weeding out processes. if you cant cut it with this then your wasting your time.

also, its a step method. this helps teach you how to form logical thinking

I can see it as a class to weed out people.

I never really saw logical thinking as something you could be taught, but I guess it's possible. I figured it was just a way some people processed thoughts, because I know a lot of people I never would imagine being useful programming or even capable of grasping it.

I learned my first language when I was still riding bikes and starting fires with friends, and it was assembly for the ARM Z80.

Good luck with it anyway, I don't even have an idea of what fortran code looks like. I have seen engineering job postings that require it though.


All times are GMT -5. The time now is 12:42 AM.


© 2024 MH Sub I, LLC dba Internet Brands