GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

Click Here to receive this Complete Guide absolutely free.

PLEASE NOTE: All LQ Rules apply to the General forum. Flame wars, personal attacks, hostility, insults and behavior of that nature will not be tolerated. Differing opinions are one of the things that make this site great, but to benefit from differing opinions the discourse must happen respectfully and thoughtfully... without insult or personal attack. Members who are unable or unwilling to participate in General under those parameters will not be permitted to do so. If you see behavior of this nature please report it.

Hi
Its funny how you can completely avoid doing any maths despite programming everyday. Anyway i need to learn a bit of maths but its been a long time, can anyone explain how to calculate the sum below ?

N is any number entered.
E is the mathematical symbol 'sum of' (whats this sign called? it will aid future googling

N
E (i+2)
i=1

Sorry about the formatting . . .

The problem is that i don't know what to do with the 'i' and what is this type of maths called so i can do a search and find resources, also does anyone know any good resources for boolean algebra ?

Maths tutorials are so bad, i got to get me a book. But in the meantime i got another one

n is any number and i don't understand the relevance of X0. Its newtons algorithm to calculate a square root. So if n = 4, answer = 16 but how to work the answer out ??

For your second problem, using 4 as an example isn't a good idea. It's better to use 2. Or 3. And then you can see that you indeed need to go all the way to X2 (in the case of 2) or X3 (in the case of 3).

omg
this will be the second book I've recommended in as many days
maybe we should link to Hari's Book site
just kidding Mods

Never was that good at maths, my old maths teacher will confirm that. However during my accounting studies we had to use a text book even I could follow. it is ...
Business Maths and Statistics
by Peter Waxman
ISBN 0 7248 0138 3
pub by Prentice Hall

your first formula looked similar to one we use to calculate compounding interest.
Anyway I dont know whether you'll be able to buy it outside Australia, but you could try Amazon.

With reference to Newton's method, it is iterative (repetitive, ie X2, X3, X4). The answer usually gets better and converges. But it's not failsafe. It fails when there's no answer or results diverge.

Originally posted by darkRoom Hi
Its funny how you can completely avoid doing any maths despite programming everyday. Anyway i need to learn a bit of maths but its been a long time, can anyone explain how to calculate the sum below ?

N is any number entered.
E is the mathematical symbol 'sum of' (whats this sign called? it will aid future googling

N
E (i+2)
i=1

Sorry about the formatting . . .

The problem is that i don't know what to do with the 'i' and what is this type of maths called so i can do a search and find resources, also does anyone know any good resources for boolean algebra ?

Thanking you all kindly

The name of the Summation sign (your E) is the Greek Letter "Sigma". For those who don't know, it looks like the number 3 backwards, and all 4 arms straight lines.

Of course, when you get into Calculus, the Sigma becomes the Integration Sign. But whatever terrible things happen in your life caused by Calculus serves you right!

Σ! There it is! In Windoze, you just need to install the Greek Alphabet, which is very easy. (Don't ask me hhow to do it in Linux, but I'm sure you know how!) Then it's the letter "B" on your English Language Keyboard.

Originally posted by darkRoom Hi
Its funny how you can completely avoid doing any maths despite programming everyday.
...

You don't say which language you use for programming, but -- to pick a simple one -- what you're looking at is a "for" loop. In this case: (This is psudo-code, buut you should 'get it.')

Code:

Sum := 0
for i = 1..N
Sum := Sum + i + 2
next
print Sum

For the other example:

Quote:

X0 = 1
Xi = 0.5 * (N / Xi-1 + Xi-1)

Code:

X := N/4
while (X != 1)
Y := 0.5 * (N/(X - 1) + X-1)
if abs(X - Y) < 0.00001 break
X := Y
next
print Y

Generally, most simple maths expressions are almost directly expressable in computer code.

(In fact, the APL computer language was designed as a mathematical language for stating proofs before it was implimented as a computer code. But that's off the subject here.)

LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.