Recent content by Antonija
-
What Is the Binding Energy of the Second Electron in a Hydrogen Ion?
Homework Statement The negative H− ion is a two-electron system like the He atom. How large is the binding energy of the second electron?Homework Equations For hydrogen-like atoms we can use hydrogen wavefunctions so I did it here. First there is potential to be found and then, multipled...- Antonija
- Thread
- Binding energy Energy Hydrogen Ion
- Replies: 1
- Forum: Advanced Physics Homework Help
-
Comp Sci Fortran error *** glibc detected ***
Thank you very much, I had been struggling with this a 3 days non-stop...I reinitialized counter i, to 1. it's initialized at one at the beginning. That's not the whole code, it's just a part of it. Well, I think i solve it now because there is no more errors! :) Just, I used pointers. It was...- Antonija
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
Comp Sci Fortran error *** glibc detected ***
Homework Statement I'm doing aproximation of derivative called five-point stencil. For every value of x, in interval [a,b], in step of 0.1 i need to calculate derivative.Homework Equations [/B] The equation is like this: Five-point stencil: (-f(x + 2h) + 8f(x + h) - 8f(x - h) + f(x -...- Antonija
- Thread
- Error Fortran
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
Comp Sci Fortran:store loop value in array
Thank you very much! Firstly I declared it as dimension 100, for example but if I have 20 numbers to put there then I will get more 80 numbers which should't be there, I suposse fortran put them there from somewhere in the memory... But than I allocated it and it works. Just one thing, i think...- Antonija
- Post #5
- Forum: Engineering and Comp Sci Homework Help
-
Comp Sci Fortran:store loop value in array
If I put avaluate(x) I get the error. There are used modules and many subroutines. I got the routine online, someone shared it and gave instructions which parts I should change in order to use it in my code... And, my code is here. This is the first version which works but doesn't store the...- Antonija
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
Comp Sci Fortran:store loop value in array
Homework Statement My program calculates the value of a function. Then it prints them on the screen. This is the part: do while(x<=b) variablesvalues(1)=x x=x+delta call recog_variables (func, variables) answer=evaluate(variablesvalues) print*, answer end do What I need to do now is to save...- Antonija
- Thread
- Array Loop Value
- Replies: 5
- Forum: Engineering and Comp Sci Homework Help
-
Comp Sci Real step-size in do loop-fortran
Actually, at the moment I'm not sure if I have fortran 90 or fortran 95, because my linux crashed a month ago and then I had to build everything new... However, I tried it with do while loop and it worked... It's like this: real:: a, x, delta= 0.0001 do while(x<=a) x=x+delta call [function] ...- Antonija
- Post #4
- Forum: Engineering and Comp Sci Homework Help
-
Comp Sci Real step-size in do loop-fortran
Homework Statement I'm trying to find out is it possible to make a real do loop in fortran. As I read online, it's possible, and there is written how to do it but when I copy/paste it into my fortran editor, it' doesn't work. At the moment I'm writing the code for minimize a function of a...- Antonija
- Thread
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
Comp Sci How to Evaluate a Function in Fortran at a Given Point of x?
I did it well! :) I don't know if I can put it here, so everyone who might need a help can see it, because I didn't do it myself, I just copy/paste some finished code which I found online (I'm sure I did it legally) and I modified it to fit into my original code... I'm just a begginer in...- Antonija
- Post #6
- Forum: Engineering and Comp Sci Homework Help
-
Comp Sci How to Evaluate a Function in Fortran at a Given Point of x?
I'm sorry, now I see it looks bad, on my post. I'm going to try to work it out somehow and then I will post again...- Antonija
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
Comp Sci How to Evaluate a Function in Fortran at a Given Point of x?
Homework Statement How can I evaluate function in some point of x? So, user inputs function in a character string, and he inputs the value of x. The program then needs to evaluate f(x). I have read something like this:http://faculty.cs.niu.edu/~hutchins/csci230/arith.htm But, I'd like to see...- Antonija
- Thread
- Fortran Function
- Replies: 5
- Forum: Engineering and Comp Sci Homework Help
-
Comp Sci Allocatable character array in Fortran
It' doesn't work... :( I tryed it this way, and it's the same, it just counts until the first space or comma. do i=len(interval),1,-1 if (interval(i:i).ne. ' ') then length=length+1 end if end do- Antonija
- Post #7
- Forum: Engineering and Comp Sci Homework Help
-
Comp Sci Allocatable character array in Fortran
One more thing, don't know what to try anymore, I need to count the number of particles in array, tryed with len_trim, with do loop,if,case... everything gives the same result: it counts the particles until the first space or first comma. I need it to count even when it comes to space, but add 0...- Antonija
- Post #4
- Forum: Engineering and Comp Sci Homework Help
-
Comp Sci Allocatable character array in Fortran
Thanks. Generally I don't need to use allocation, but I want to, because I need to show skills as much as I can in my program, even if it's not that necessary... so, it may be something like this:print*,'input the interval' read(*,*)interval allocate(character(len(interval))::interval...- Antonija
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
Comp Sci Allocatable character array in Fortran
Homework Statement I have character array in fortran which is defined as allocatable. When program runs, user inputs something like: [1,2,3,4...], and then program reads it and counts the particles, and then allocate array with dimension it just read. Thats' how I understood it. This program...- Antonija
- Thread
- Array Fortran
- Replies: 7
- Forum: Engineering and Comp Sci Homework Help