# Search results for query: *

1. ### Fortran Why Doesn't Fortran Recognize Small Numbers?

Rather than make a new thread, I figured I'd ask here. Is there anyway to define functions after the input type statements? For example, f(x)=sin(x). I want to redefine f(x) as I go along the program. Thanks.
2. ### Fortran Why Doesn't Fortran Recognize Small Numbers?

Ah double precision statements. I didn't think of that. I was trying to use periods, which weren't working, but I've seen people use them for that purpose. Thank you. I read up on double precision statements and it was simple enough to incorporate. That worked.
3. ### Fortran Why Doesn't Fortran Recognize Small Numbers?

We're not talking very small. Is it the compiler? I'm using gfortran. An example would be: f(y)=1E-5*(y**3) For f(40), that should be 0.64. When I compile and execute, however, it displays 0's. If I make the coefficient 1, the result does come out to be correct. I have an old...
4. ### Fortran (3I3,F9.6) Fortran source code

Since he has had his question answered, and my question relates to this topic, I'll post my question here. I'm constrained to 72 columns to input my code. How do I input a function in multiple lines? e.g: f(y)=sin(y)+cos(y) I have tried: f(y)=sin(y) f(y)=f(y)+cos(y) The...
5. ### Fortran I'm Having a lot of Problems with Fortran (77)

By the way Math, what compiler do you use? For this initial practice run, I spent a lot of time going through compilers. I ran into this one called PGI Fortran Workstation. It's the one I used for this program. In just one command line in Command Prompt, it gave me an executable file...
6. ### Fortran I'm Having a lot of Problems with Fortran (77)

Thanks a lot! Your help was great. It worked. I had to also include a "go to" statement so that the *.exe file generated wouldn't close on me immediately after the solutions were output. I also added some "print" statements to simplify input and data recognition. Good results too. Here...
7. ### Fortran I'm Having a lot of Problems with Fortran (77)

It gives me problems with the function. "Assignment operation illegal to external procedure fun" Then it gives me the line in which the function is written. I went online to find examples of how to input functions in F77, but other methods I've tried resulted in more errors in relation to the...
8. ### Fortran I'm Having a lot of Problems with Fortran (77)

If you don't mind to provide further assistance, I would appreciate it if you checked over my program again. I finally found a compiler that will work. It's standalone though. I can't seem to integrate it with Eclipse. It gives back a message saying I have 1 severe error. I'm trying to...
9. ### Fortran I'm Having a lot of Problems with Fortran (77)

Thanks a lot. I really appreciate it.
10. ### Fortran I'm Having a lot of Problems with Fortran (77)

I don't think it's the program; I have it shown below. Sure it's not the most memory-efficient, but that's not my objective right now. I'm just trying to get a simple program to work. I was finally able to get a makefile generated automatically, but now it can't launch it whenever I use the...
11. ### Fortran I'm Having a lot of Problems with Fortran (77)

I'm new to this language, and my programming experience is limited (I've only done Assembly). My issues do not necessarily lie in the coding itself, but in the compiling and building. I'm using Eclipse, on which I installed Photran. The syntax recognition and formatting of the GUI is very...