LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 11-18-2009, 08:55 PM   #16
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,915

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338

The relationship between the four equations is that one is the inverse ln of the other so:
ln(wt)=3.216*ln(length)-.5065
is
wt=.6026*length^3.216

If you look at the equations on the graph the units appear to be mixed up. However the grpah (which is in inches) seems to match the above equation ft to lbs. Have fun.
 
Old 11-18-2009, 10:35 PM   #17
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
Quote:
Originally Posted by michaelk View Post
The relationship between the four equations is that one is the inverse ln of the other so:
ln(wt)=3.216*ln(length)-.5065
is
wt=.6026*length^3.216

If you look at the equations on the graph the units appear to be mixed up.
However the grpah (which is in inches) seems to match the above equation ft to lbs. Have fun.
I noticed that, but wasn't sure enough to bring it up (and still am not really).

I've re-posted the script above in my first post, with what appear to be much better calculations, hopefully accurate as they can be this time, and also made it so numerous different length units can be inputted (feet meters centimeters inches), and added some input sanity checking.

More comments welcome

Sasha
 
Old 11-19-2009, 06:30 AM   #18
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.37 // Desktop: Slackware64 13.37 // Netbook: Slackware 13.37
Posts: 5,477
Blog Entries: 48

Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
What's your snake called, Sasha? You have mentioned it before, but I've forgotten.
 
Old 11-19-2009, 07:24 AM   #19
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,915

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Looks good but will try running some numbers when I get a chance.
 
Old 11-19-2009, 08:37 AM   #20
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
@ BrianL -- She's a Colombian constrictor imperator; her name is Kalliste.

@ michaelk -- thanks! I'll appreciate the feedback.
 
Old 11-19-2009, 08:53 AM   #21
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.37 // Desktop: Slackware64 13.37 // Netbook: Slackware 13.37
Posts: 5,477
Blog Entries: 48

Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
Ah, yes, thought it was something Greek! "The Fairest", or summat like that. That was what was written on The Apple Of Discord, that started a cat-fight among the Goddesses and led to the Trojan War. Nice.
 
Old 11-20-2009, 06:24 AM   #22
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,915

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
I could not find anything obviously wrong wrong with the calculations. So how long is Kalliste?
 
Old 11-20-2009, 07:46 AM   #23
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
Thanks michaelk

Kalli is approx. 4 feet long, actually I'd guess she's a bit longer than that, but I have not tried to measure her really accurately yet. Definitely >= 4 ft though. She'll be 17 months old in a couple days.

Sasha
 
  


Reply

Tags
length, weight


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Calculate, has anyone used this Gentoo based distro? ONEderer Linux - Software 1 07-05-2009 10:06 PM
bash script - calculate directory size noir911 Programming 1 01-20-2009 05:25 PM
calculate logarithm in bash script bluesmoke Programming 5 12-14-2008 01:41 AM
bash calculate job duration Padawan.AVT Programming 2 10-07-2008 02:33 AM
Bash Script, calculate output. eldaria Programming 13 07-20-2006 09:26 PM


All times are GMT -5. The time now is 07:06 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration