You need to discretize your equation in time (i.e. using small dt). You just then compute the y(t) for t=0 until the first t where y(t)<=0 (i.e. the projectile has reached the original elevation).
Then question a) is given by ymax, b) by tymax and c) by t at the end of the while loop.
Sorry to not help you straight away with the Fortran program, last time I did Fortran stuff was about 15 years ago!
Hi all.
I have 2 files like this:
f1
A 10
B 80
C 9
f2
A 11
B 700
C 10
What I want is the concatenation of the two files sorted by name (alphabetically) and size (numerically), so the result should be like this:
F3 (cat f1 f2 sorted)
A 10
A 11
B 80
B 700 (2 Replies)
I got a long list of file name.
My input:
data_1.txt
data_2.txt
data_3.txt
data_10.txt
data_21.txt
data_12.txt
data_4.txt
My desired output:
data_1.txt
data_2.txt
data_3.txt
data_4.txt
data_10.txt
data_12.txt
data_21.txt
Does anybody got idea how to archive it? (11 Replies)
Hi,
A basic query. In the example file below, I want to sort by column 1 and then by column 2 numerically. I have tried sort -k2n,1 file1 but while this sorts the columns in the correct order, it does not sort column 2 numerically. Any help would be much appreciated. Also, if you have time to... (3 Replies)
Greetings - I'm not necessarily new to bash scripting - I'm probably between beginner and intermediate, but I have something that I just cannot figure out after many attempts to find it. I have a file that is merely a list of many files, with their respective paths, and a branch path (ClearCase)... (5 Replies)
Hello all,
I have a list of file names in a text document where each file name consists of 4 letters and 3 numbers (for example MACR119). There are 48 file names in the document (they are not in alphabetical or numerical order). I would like to reorder the list of names so that the 48th name is... (3 Replies)
Hello,
I am running ubuntu 16.04 and trying to list all files inside a directory, I need to sort them in ascending order. While surfing on the site, I found an old thread but somehow it did not work.
Link
Ascending order with sort -nk2 myfile.txt command gives below output:
file... (5 Replies)
Trying to sort a bunch of files numerically but can't seem to get the command just right. This is in a IBM AIX machine.
I have a directory that has...
backup.bk1
backup.bk100
backup.bk2
backup.bk200
backup.bk3
backup.bk300
There are a lot more files but this is shortened for the... (5 Replies)
Discussion started by: c3rb3rus
5 Replies
LEARN ABOUT REDHAT
intro
INTRO(3) Linux Programmer's Manual INTRO(3)NAME
intro - Introduction to library functions
DESCRIPTION
This chapter describes all library functions excluding the library functions described in chapter 2, which implement system calls. There
are various function groups which can be identified by a letter which is appended to the chapter number:
(3C) These functions, the functions from chapter 2 and from chapter 3S are contained in the C standard library libc, which will be used
by cc(1) by default.
(3S) These functions are parts of the stdio(3) library. They are contained in the standard C library libc.
(3M) These functions are contained in the arithmetic library libm. They are used by the f77(1) FORTRAN compiler by default, but not by
the cc(1) C compiler, which needs the option -lm.
(3F) These functions are part of the FORTRAN library libF77. There are no special compiler flags needed to use these functions.
(3X) Various special libraries. The manual pages documenting their functions specify the library names.
AUTHORS
Look at the header of the manual page for the author(s) and copyright conditions. Note that these can be different from page to page!
Linux 1995-12-13 INTRO(3)