Sponsored Content
Top Forums UNIX for Advanced & Expert Users GNU = inventions that nobody wants? Post 303010837 by bakunin on Monday 8th of January 2018 07:33:41 AM
Old 01-08-2018
Quote:
Originally Posted by CarloM
df -Bg should work
Thanks a lot, i didn't know that. This still leaves the "tmpfs" entries and the "udev", but at least one of the problems is solved. Good catch!

bakunin
 

9 More Discussions You Might Find Interesting

1. Programming

Gnu C

hello, i have use only TURBO C for programming.i used to did only on windows OS. but now i am trying to program on Linux systems.so i heard about GNU C tools and compiler. i am a bit confused and i want to know a very simplified answer for it. can anybody help me. what a heck is this GNU...... ... (1 Reply)
Discussion started by: vibhory2j
1 Replies

2. News, Links, Events and Announcements

GNU/Solaris

i am looking forward to this one: http://www.opensolaris.org/jive/message.jspa?messageID=11672#11672 i thought that the gentoo community would release the first opensolaris distri, but perhabs we will get a chance to try opensolaris within 1/2 hour installation and not 12 hours "gentoo-stage_1"... (2 Replies)
Discussion started by: pressy
2 Replies

3. HP-UX

Gnu tools for hp-ux

Hi everyone, I urgently need to install all GNU tools for HP-UX 11.23. Is there somewhere i can get the whole package as opposed to download each of them separate. I'm really stuck, i need them especially gcc. kindly assist. (2 Replies)
Discussion started by: dowell
2 Replies

4. UNIX for Advanced & Expert Users

GNU screen

Hello, One of the things I like about screen is that it has a scrollback buffer, which if you go into the copy mode, will let you go back for a specified number of line. Is there a way to extend the number of scrollback lines in screen? I've looked thoroughly online and I could not find a... (2 Replies)
Discussion started by: neked
2 Replies

5. UNIX for Advanced & Expert Users

non GNU utilities

Hi Chaps, Does anyone know of a source of proprietary unix utilities. I often fall into the trap of testing a spot of code on my linux machine, posting the answer in the forums and then realise that the solution may only work with the GNU utils that I use, and not standard posix ones (if there are... (4 Replies)
Discussion started by: wempy
4 Replies

6. BSD

Anyone using GNU BSD?

Is anyone using or planning to use GNU BSD in production yet? I'd like to hear experiences. (Debian GNU/NetBSD) (8 Replies)
Discussion started by: vpsville
8 Replies

7. AIX

GNU findutils

Hi, We are running 64-bit AIX 6.1. I have gcc 4.2.0 on our system. I'd like to get the latest copy of GNU findutils on the server. From what I see, I have two basic options: 1) download source code and compile using gcc or 2) download rpm and install. Would someone please point me in the right... (1 Reply)
Discussion started by: Eben Yong
1 Replies

8. Debian

GNU Barcodes

I wish to be able to print a barcode .5 inches from top of the page and centered. I generate the barcode - yes 12345 | head -84 | barcode -p 5x5.0cm -umm -e CODE39 > test.ps; and print - lpr -o media=letter -#1 -P LJ1012 /var/www/test.ps -o page-top=33 -o page-bottom=44 -o... (1 Reply)
Discussion started by: Meow613
1 Replies

9. Shell Programming and Scripting

Using GNU Regex

I'm just learning Regex and while testing my understanding I received some unexpected results. I created example.txt with the text "abcddd". Running the command grep --color 'd' example.txt I received the results: "abcddd" with the first and second letter d highlighted in red. So... (1 Reply)
Discussion started by: rthomas529
1 Replies
math::fuzzy(3tcl)						 Tcl Math Library						 math::fuzzy(3tcl)

__________________________________________________________________________________________________________________________________________________

NAME
math::fuzzy - Fuzzy comparison of floating-point numbers SYNOPSIS
package require Tcl ?8.3? package require math::fuzzy ?0.2? ::math::fuzzy::teq value1 value2 ::math::fuzzy::tne value1 value2 ::math::fuzzy::tge value1 value2 ::math::fuzzy::tle value1 value2 ::math::fuzzy::tlt value1 value2 ::math::fuzzy::tgt value1 value2 ::math::fuzzy::tfloor value ::math::fuzzy::tceil value ::math::fuzzy::tround value ::math::fuzzy::troundn value ndigits _________________________________________________________________ DESCRIPTION
The package Fuzzy is meant to solve common problems with floating-point numbers in a systematic way: o Comparing two numbers that are "supposed" to be identical, like 1.0 and 2.1/(1.2+0.9) is not guaranteed to give the intuitive result. o Rounding a number that is halfway two integer numbers can cause strange errors, like int(100.0*2.8) != 28 but 27 The Fuzzy package is meant to help sorting out this type of problems by defining "fuzzy" comparison procedures for floating-point numbers. It does so by allowing for a small margin that is determined automatically - the margin is three times the "epsilon" value, that is three times the smallest number eps such that 1.0 and 1.0+$eps canbe distinguished. In Tcl, which uses double precision floating-point numbers, this is typically 1.1e-16. PROCEDURES
Effectively the package provides the following procedures: ::math::fuzzy::teq value1 value2 Compares two floating-point numbers and returns 1 if their values fall within a small range. Otherwise it returns 0. ::math::fuzzy::tne value1 value2 Returns the negation, that is, if the difference is larger than the margin, it returns 1. ::math::fuzzy::tge value1 value2 Compares two floating-point numbers and returns 1 if their values either fall within a small range or if the first number is larger than the second. Otherwise it returns 0. ::math::fuzzy::tle value1 value2 Returns 1 if the two numbers are equal according to [teq] or if the first is smaller than the second. ::math::fuzzy::tlt value1 value2 Returns the opposite of [tge]. ::math::fuzzy::tgt value1 value2 Returns the opposite of [tle]. ::math::fuzzy::tfloor value Returns the integer number that is lower or equal to the given floating-point number, within a well-defined tolerance. ::math::fuzzy::tceil value Returns the integer number that is greater or equal to the given floating-point number, within a well-defined tolerance. ::math::fuzzy::tround value Rounds the floating-point number off. ::math::fuzzy::troundn value ndigits Rounds the floating-point number off to the specified number of decimals (Pro memorie). Usage: if { [teq $x $y] } { puts "x == y" } if { [tne $x $y] } { puts "x != y" } if { [tge $x $y] } { puts "x >= y" } if { [tgt $x $y] } { puts "x > y" } if { [tlt $x $y] } { puts "x < y" } if { [tle $x $y] } { puts "x <= y" } set fx [tfloor $x] set fc [tceil $x] set rounded [tround $x] set roundn [troundn $x $nodigits] TEST CASES
The problems that can occur with floating-point numbers are illustrated by the test cases in the file "fuzzy.test": o Several test case use the ordinary comparisons, and they fail invariably to produce understandable results o One test case uses [expr] without braces ({ and }). It too fails. The conclusion from this is that any expression should be surrounded by braces, because otherwise very awkward things can happen if you need accuracy. Furthermore, accuracy and understandable results are enhanced by using these "tolerant" or fuzzy comparisons. Note that besides the Tcl-only package, there is also a C-based version. REFERENCES
Original implementation in Fortran by dr. H.D. Knoble (Penn State University). P. E. Hagerty, "More on Fuzzy Floor and Ceiling," APL QUOTE QUAD 8(4):20-24, June 1978. Note that TFLOOR=FL5 took five years of refereed evolution (publication). L. M. Breed, "Definitions for Fuzzy Floor and Ceiling", APL QUOTE QUAD 8(3):16-23, March 1978. D. Knuth, Art of Computer Programming, Vol. 1, Problem 1.2.4-5. BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category math :: fuzzy of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. KEYWORDS
floating-point, math, rounding CATEGORY
Mathematics math 0.2 math::fuzzy(3tcl)
All times are GMT -4. The time now is 07:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy