Sponsored Content
Full Discussion: Sun Ultra 5 new user
Operating Systems Solaris Sun Ultra 5 new user Post 302968813 by _JonB_ on Monday 14th of March 2016 04:34:41 PM
Old 03-14-2016
Quote:
Originally Posted by jlliagre
Exposing a ten years old sshd to the Internet would be reckless...
..and that is what cincerns me. Can it be updated?
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Using a Sun Ultra 5 at work

I wouldn't call myself exactly new to Unix. I've played with Linux before so I can get around alright. I just have never really learned the basics, like setting a user's path. How do I do that on my Sun station? Obvioulsly, I've got several different bins, but I can only use the commands in... (1 Reply)
Discussion started by: skinnell2
1 Replies

2. UNIX Benchmarks

Sun Ultra 2 Solaris 8

Sparc Ultra2: Notes prtdiag: System Configuration: Sun Microsystems sun4u Sun Ultra 2 UPA/SBus (2 X UltraSPARC-II 296MHz) System clock frequency: 99 MHz Memory size: 768 Megabytes ========================= CPUs ========================= Run Ecache CPU CPU... (0 Replies)
Discussion started by: tnorth
0 Replies

3. UNIX Benchmarks

Sun Ultra 30 Solaris 8

Sun Ultra30 Solaris 8 Notes: ... Results: System -- SunOS box 5.8 Generic_108528-23 sun4u sparc SUNW,Ultra-30 Start Benchmark Run: Fri Sep 12 11:59:12 EDT 2003 1 interactive users. Dhrystone 2 without register variables 502087.7 lps (10 secs, 6 samples) Dhrystone 2 using... (2 Replies)
Discussion started by: tnorth
2 Replies

4. Solaris

sun ultra or sun sparkstation

am wonder wich sun computer is better, a sun ultra or sun sparkstation, and what is the difference (7 Replies)
Discussion started by: nobody
7 Replies

5. Solaris

sun ultra

Hi Guys, I have a 2nd hand Sun ultra-5, I wanted to know how to be able to run it as a normal window. I do not have any experience whatsoever with solaris/unix. Does anyone can give me a clue where to start. When I switch it goes to: unix console login: pa$$word: #UNIX sendmail : enable to... (0 Replies)
Discussion started by: lingosa
0 Replies

6. Solaris

hey i just got a Sun ultra 5!!!

now what do i do? im looking at it and i booted it after a bunch of code i got a line askign for the password i also downloaded solaris 10 any advice on how to install it? (36 Replies)
Discussion started by: russian460
36 Replies

7. Solaris

sun ultra 10 workstation

Hi All, I bought a sun workstation from ebay. Can I replace the cd-rom drive with a dvd-rom drive with any type? I mean, can I just buy a dvd-rom drive from a pc store? Thanks, itik (2 Replies)
Discussion started by: itik
2 Replies

8. Solaris

sun ultra 10 monitor

hi all, it seem hard to see on a regular monitor the ultra 10 converter to rgb so that it can go to a pc monitor. do u know how can i fix the monitor properly? it's not easy to see on the monitor there's so many lines. thanks in advance. (2 Replies)
Discussion started by: itik
2 Replies

9. Solaris

SUN ULTRA 45 - Solaris

hi, my sun box hangs- KEYBOARD not found. Using hyper link it boots and then hangs without able to access or get ok promt ----SCREEN SHOT AS-------------------------------------------------- ˙Loading onboard drivers: ebus i2c i2c i2c ppm /ebus@1f,464000: flashprom rtc serial serial env-monitor... (2 Replies)
Discussion started by: mathav22
2 Replies

10. Hardware

Sun Sparc Ultra 30 help

Hi all, I managed to salvage form work an old Sun Sparc Ultra 30. I have had it stored (controlled storage) for a few years and decided to get it home and boot it up. It starts up with a beep then I can hear disks spinning up, CDROM moving but nothing is displayed on the monitor. Can... (2 Replies)
Discussion started by: robbo007
2 Replies
math::fuzzy(n)							 Tcl Math Library						    math::fuzzy(n)

__________________________________________________________________________________________________________________________________________________

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(n)
All times are GMT -4. The time now is 02:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy