02-08-2002
Re: Quadratic Formula Program
We are not allowed to do your schoolwork for you. But you have one nasty hard-to-find bug that may not be your fault:
Quote:
Originally posted by zeek
fscanf (fp,"%1f%*c%1f%*c%1f",&a,&b,&c);
That can't be right. I think those one's should be letter l's. A letter-l says that a, b, and c are doubles, which they are. A one says that field is a single character wide.
Always make sure that you are using a font that lets you see the difference between 1 and l. Ditto for O and 0.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need some help. I been doing system admin for the last several years and gotten very rusty on scripting. I need to write a script that will take a log entry and do math using two columns of data to create a new column. I am taking the column(#2) that contains the time and the column(#5) that... (3 Replies)
Discussion started by: scottzx7rr
3 Replies
2. Solaris
Hello
there are different opinions on how to get the swap space on Solaris.
some say: swap -s and the space= used + available
others say swap -l (donno how they get the swap size)
other say 'top' command
others say using format command (in print sub-command)
Could you please advise on... (1 Reply)
Discussion started by: melanie_pfefer
1 Replies
3. UNIX for Dummies Questions & Answers
The formula below will calculate a distance in miles between 2 points in excel. Can some put it to work in unix?
Lat = 43.335
Lon1 = -70.9884
Lat2 = 43.4829
Lon2 = -71.246
distance... (8 Replies)
Discussion started by: bobo
8 Replies
4. Shell Programming and Scripting
Hello Unix gurus,
Can anyone tell me the most efficient way to create script for the formula?
Formula:
Ans = 1 - ((Buffer pool data physical reads + Buffer pool xda physical reads + Buffer pool index physical reads + Buffer pool temporary data physical reads + Buffer pool temporary xda... (6 Replies)
Discussion started by: Rahulpict
6 Replies
5. Shell Programming and Scripting
Formula to get combination
Lats say, I have 5 values
ID Price
1 5
2 10
3 30
4 5
Resule with Possible combinations will be
ID Price
1 5
2 10
3 30
4 5
1+1 10
1+2 15
1+3 35
1+4 10 (1 Reply)
Discussion started by: Amit.Sagpariya
1 Replies
6. Shell Programming and Scripting
I'm new to Perl, but I need to use it to write into an excel spreadsheet. I want to copy the values of certain cells into a new sheet in the workbook. I'm unsure of how to do this because I don't know how to copy values instead of formulas.
Note: by formula I mean '=SUM(A1,A2)' and by value I... (0 Replies)
Discussion started by: AgentSmith88
0 Replies
7. Shell Programming and Scripting
Dear all,
I got a template excel file which contains several worksheets. Each worksheet contains some formulas in the cells.
I am using the perl script to read a CSV file and then put the data of CSV into template excel file(first worksheet) and then save it as new file name using ... (0 Replies)
Discussion started by: eldonlck
0 Replies
8. Shell Programming and Scripting
Hi all,
I use "Spreadsheet::ParseExcel::SaveParser" to
- read a existing excel file with :
$Parser = Spreadsheet::ParseExcel::SaveParser->new();
$HeaderFile = $Parser->Parse("XLS_FILE_ACCESS");
- modify some values in somes cell with :
$worksheet->AddCell($row_target,$col_max,... (3 Replies)
Discussion started by: Yom
3 Replies
9. Shell Programming and Scripting
Dear Masters,
Kindly need your helps for this issue..
I face a formula as a picture...
the input file is
A DEPT Vp Vs rho VPperVS
------------------------ ------------ ------------ ------------
700 151.9218 121.9269 ... (11 Replies)
Discussion started by: ipatah
11 Replies
10. Solaris
Hi There,
Just curious here...
If there formula to calculate scan rate on solaris?
Thanks
Edy (3 Replies)
Discussion started by: edydsuranta
3 Replies
TOWLOWER(3) BSD Library Functions Manual TOWLOWER(3)
NAME
towlower, towlower_l -- upper case to lower case letter conversion (wide character version)
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <wctype.h>
wint_t
towlower(wint_t wc);
#include <wctype.h>
#include <xlocale.h>
wint_t
towlower_l(wint_t wc, locale_t loc);
DESCRIPTION
The towlower() function converts an upper-case letter to the corresponding lower-case letter.
Although the towlower() function uses the current locale, the towlower_l() function may be passed a locale directly. See xlocale(3) for more
information.
RETURN VALUES
If the argument is an upper-case letter, the towlower() function returns the corresponding lower-case letter if there is one; otherwise, the
argument is returned unchanged.
SEE ALSO
iswlower(3), tolower(3), towupper(3), wctrans(3), xlocale(3)
STANDARDS
The towlower() function conforms to ISO/IEC 9899:1999 (``ISO C99'').
BSD
October 3, 2002 BSD