473,396 Members | 1,833 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

maths for programming C++

hai to all,

i did some programming in Lisp (6 months) & next i want to learn C++. i
searched all the archives of "comp.lang.c++" & ACCU too & decided "C++
Primer" 3/e as my text book. (unfortunatley i tried but Accelerated C++
is not available in India, not even "C++ Primer 4/e).

anyway, my question:

I want to start doing math only for learning the following skills:

"logic, problem-solving & pattern-recognition", skills of a
mathematician which i will apply to programming & also to
general-learning in life (1). i searched on net & found "Donald Knuth",
the ultimate authority on these skills.

"Concrete Mathemetics" is available here, but hell, ...it is *faaaar*
above my head. but i see it as a most usefull book to learn the
skill-set i mentioned earlier. so i am banging my head into it. i will
be doing it 1 hour a day, other time will be spent on doing programming
:-). so will you recommend some books out of the following list of
algebra books as a prerequisite to DON Knuth's Concrete Mathemetics (or
you want to say something else?)?

Higher Algebra - Hall & Knight
Higher Algebra - Bernard & Child
Algebra for beginners - Hall & Knight
Algebra - Artin
Algebra - Lang, Serge
Elmentry Algebra - Rich
Algebra - Moh
Algebra for programming - bird, Moor, De

I am a B.Sc. graduate & undestand college-level maths like: Binomial
theorm, Permutation & Combinations, sum of n terms, quadrilaterals,
isoceles & equilateral triangles, vertically opposite angles etc. etc.

*please* bear with me if it is *sick* , its my 2nd post on some
newsgroup.

thanks

<< "uttre"

(1) sometime ago i read a blog of Stevey-Drunken's on "Maths everyday".
the distinctional points he proposed in his blog are exactly similar to
the ones i have got after doing some programming for 6 months. but he
had his points by reading "John Von Neumann and the Origins of Modern
Computing". I dont know him & neither i read that book but the points
he noticed & points i noticed are similar in many respects.

Jul 12 '06 #1
9 2086
"uttre" <ra*********@yahoo.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
hai to all,

i did some programming in Lisp (6 months) & next i want to learn C++. i
searched all the archives of "comp.lang.c++" & ACCU too & decided "C++
Primer" 3/e as my text book. (unfortunatley i tried but Accelerated C++
is not available in India, not even "C++ Primer 4/e).

anyway, my question:

I want to start doing math only for learning the following skills:

"logic, problem-solving & pattern-recognition", skills of a
mathematician which i will apply to programming & also to
general-learning in life (1). i searched on net & found "Donald Knuth",
the ultimate authority on these skills.

"Concrete Mathemetics" is available here, but hell, ...it is *faaaar*
above my head. but i see it as a most usefull book to learn the
skill-set i mentioned earlier. so i am banging my head into it. i will
be doing it 1 hour a day, other time will be spent on doing programming
:-). so will you recommend some books out of the following list of
algebra books as a prerequisite to DON Knuth's Concrete Mathemetics (or
you want to say something else?)?

Higher Algebra - Hall & Knight
Higher Algebra - Bernard & Child
Algebra for beginners - Hall & Knight
Algebra - Artin
Algebra - Lang, Serge
Elmentry Algebra - Rich
Algebra - Moh
Algebra for programming - bird, Moor, De

I am a B.Sc. graduate & undestand college-level maths like: Binomial
theorm, Permutation & Combinations, sum of n terms, quadrilaterals,
isoceles & equilateral triangles, vertically opposite angles etc. etc.

*please* bear with me if it is *sick* , its my 2nd post on some
newsgroup.

thanks

<< "uttre"

(1) sometime ago i read a blog of Stevey-Drunken's on "Maths everyday".
the distinctional points he proposed in his blog are exactly similar to
the ones i have got after doing some programming for 6 months. but he
had his points by reading "John Von Neumann and the Origins of Modern
Computing". I dont know him & neither i read that book but the points
he noticed & points i noticed are similar in many respects.
It is hard for me to understand how someone could understand Binomial
theorm, quadrilaters, etc... and not know Algebra. Perhaps that is only
because here Algebra comes right after basic math.

Anyway... Algebra is good to know, but is a little bit different than
computer math. In Algebra this statment is totally wrong and impossible.
A = A + 1
because the = is used to show equality. In some computer languages, C and
C++ and others, it is used for assignment, adding one to the variable A.

Why is it you think you need to study Algebra for computer mathematics? I'm
not saying you shouldn't know Algebra, I use it all the time to convert
formulas from non computer math to computer math.

Do you understand the following equations as used in mathematics?

X + 1 = Y + 2
X = Y + 1
Y = X - 1

If you understand them, that is, how they are all equal, I don't know that
you need to know much more to apply your college math to computer formulas.
Jul 12 '06 #2

uttre wrote:
hai to all,

i did some programming in Lisp (6 months) & next i want to learn C++. i
searched all the archives of "comp.lang.c++" & ACCU too & decided "C++
Primer" 3/e as my text book. (unfortunatley i tried but Accelerated C++
is not available in India, not even "C++ Primer 4/e).

anyway, my question:

I want to start doing math only for learning the following skills:

"logic, problem-solving & pattern-recognition", skills of a
mathematician which i will apply to programming & also to
general-learning in life (1). i searched on net & found "Donald Knuth",
the ultimate authority on these skills.

"Concrete Mathemetics" is available here, but hell, ...it is *faaaar*
above my head. but i see it as a most usefull book to learn the
skill-set i mentioned earlier. so i am banging my head into it. i will
be doing it 1 hour a day, other time will be spent on doing programming
:-). so will you recommend some books out of the following list of
algebra books as a prerequisite to DON Knuth's Concrete Mathemetics (or
you want to say something else?)?

Higher Algebra - Hall & Knight
Higher Algebra - Bernard & Child
Algebra for beginners - Hall & Knight
Algebra - Artin
Algebra - Lang, Serge
Elmentry Algebra - Rich
Algebra - Moh
Algebra for programming - bird, Moor, De

I am a B.Sc. graduate & undestand college-level maths like: Binomial
theorm, Permutation & Combinations, sum of n terms, quadrilaterals,
isoceles & equilateral triangles, vertically opposite angles etc. etc.
Your level of understanding is somewhat puzzling to me - in that - how
could _not_ have an appreaciation for algebra, after - at a minimum
binomial theorem?

There's two distinct items here.
1. Learning math
2. Applying it in a programming environment.
>From the looks of your post you already know this. That said, with
regards to item 1, for algebra/trig you'll be fine with some of the
recommended texts. The higher level stuff - pattern recognition, etc.
is an entirely different beasts and will - perhaps - take some time to
'get your head around'.
As for item 2. Most texts I've seen that are geared towards the
scientific community is poorly written. 'void main' - for instance ...
..

Jul 12 '06 #3
ma740988 wrote:
Your level of understanding is somewhat puzzling to me - in that - how
could _not_ have an appreaciation for algebra, after - at a minimum
binomial theorem?
my english is weak so i did not get this. i mean the sentence ---- how
could _not_ have an appreaciation for algebra, after ---
There's two distinct items here.
1. Learning math
2. Applying it in a programming environment.
OK, i am focussing on 1. regarding 2, it will be applying the logic &
problem solving skills to programming(which i will learn from 1)
From the looks of your post you already know this. That said, with
regards to item 1, for algebra/trig you'll be fine with some of the
recommended texts.
nobody *recommended* any texts to me.
The higher level stuff - pattern recognition, etc.
is an entirely different beasts and will - perhaps - take some time to
'get your head around'.
hmmmm...ok i will take my time.
As for item 2. Most texts I've seen that are geared towards the
scientific community is poorly written. 'void main' - for instance ...
:-(

thanks

Jul 13 '06 #4
"uttre" <ra*********@yahoo.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
ma740988 wrote:
>Your level of understanding is somewhat puzzling to me - in that - how
could _not_ have an appreaciation for algebra, after - at a minimum
binomial theorem?

my english is weak so i did not get this. i mean the sentence ---- how
could _not_ have an appreaciation for algebra, after ---
He meant the same thing I did, it's hard to understand how you don't know
algrebra with the other higher math you know.
>There's two distinct items here.
1. Learning math
2. Applying it in a programming environment.

OK, i am focussing on 1. regarding 2, it will be applying the logic &
problem solving skills to programming(which i will learn from 1)
>From the looks of your post you already know this. That said, with
regards to item 1, for algebra/trig you'll be fine with some of the
recommended texts.

nobody *recommended* any texts to me.
That's because we feel you don't need any texts. Your knowledge of math
seems to be beyond Algebra already.
>The higher level stuff - pattern recognition, etc.
is an entirely different beasts and will - perhaps - take some time to
'get your head around'.

hmmmm...ok i will take my time.
>As for item 2. Most texts I've seen that are geared towards the
scientific community is poorly written. 'void main' - for instance ...

:-(

thanks

Jul 13 '06 #5
Jim Langston <ta*******@rocketmail.comwrote:
"uttre" <ra*********@yahoo.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
>Algebra - Lang, Serge

I am a B.Sc. graduate & undestand college-level maths like: Binomial
theorm, Permutation & Combinations, sum of n terms, quadrilaterals,
isoceles & equilateral triangles, vertically opposite angles etc. etc.

It is hard for me to understand how someone could understand Binomial
theorm, quadrilaters, etc... and not know Algebra. Perhaps that is only
because here Algebra comes right after basic math.
Unless I am mistaken, the Serge Lang _Algebra_ book is graduate-level
(abstract) algebra, which deals with such concepts as groups, rings,
fields, and cohomology.

http://mathworld.wolfram.com/Algebra.html
http://mathworld.wolfram.com/AbstractAlgebra.html

--
Marcus Kwok
Replace 'invalid' with 'net' to reply
Jul 13 '06 #6
Jim Langston wrote:
He meant the same thing I did, it's hard to understand how you don't know
algrebra with the other higher math you know.
i did not know that somebody knowing Binomail Theorm knows algebra. so
i know algebra :-)
nobody *recommended* any texts to me.
That's because we feel you don't need any texts. Your knowledge of math
seems to be beyond Algebra already.
thank you

'uttre'

Jul 13 '06 #7

Marcus Kwok wrote:
Unless I am mistaken, the Serge Lang _Algebra_ book is graduate-level
(abstract) algebra, which deals with such concepts as groups, rings,
fields, and cohomology.

http://mathworld.wolfram.com/Algebra.html
http://mathworld.wolfram.com/AbstractAlgebra.html
thanks for the links.

'uttre'

Jul 13 '06 #8
Marcus Kwok wrote:
[redacted]

Unless I am mistaken, the Serge Lang _Algebra_ book is graduate-level
(abstract) algebra, which deals with such concepts as groups, rings,
fields, and cohomology.

Ah... abstract algebra.... brings back memories.... most notably the
typo in the course syllabus (UCSC 1984). The last lecture was to be on
the unsolvability of the quintic. However, the last word got left off,
so the syllabus looked like:

THE UNSOLVABILITY OF THE
FINAL EXAM

Not a hopeful sign for most students :-)
Jul 13 '06 #9
"uttre" <ra*********@yahoo.comwrote in message news:11**********************@b28g2000cwb.googlegr oups.com...
hai to all,

i did some programming in Lisp (6 months) & next i want to learn C++. i
searched all the archives of "comp.lang.c++" & ACCU too & decided "C++
Primer" 3/e as my text book. (unfortunatley i tried but Accelerated C++
is not available in India, not even "C++ Primer 4/e).

anyway, my question:

I want to start doing math only for learning the following skills:

"logic, problem-solving & pattern-recognition", skills of a
mathematician which i will apply to programming & also to
general-learning in life (1). i searched on net & found "Donald Knuth",
the ultimate authority on these skills.

"Concrete Mathemetics" is available here, but hell, ...it is *faaaar*
above my head. but i see it as a most usefull book to learn the
skill-set i mentioned earlier. so i am banging my head into it. i will
be doing it 1 hour a day, other time will be spent on doing programming
:-). so will you recommend some books out of the following list of
algebra books as a prerequisite to DON Knuth's Concrete Mathemetics (or
you want to say something else?)?

Higher Algebra - Hall & Knight
Higher Algebra - Bernard & Child
Algebra for beginners - Hall & Knight
Algebra - Artin
Algebra - Lang, Serge
Elmentry Algebra - Rich
Algebra - Moh
Algebra for programming - bird, Moor, De

I am a B.Sc. graduate & undestand college-level maths like: Binomial
theorm, Permutation & Combinations, sum of n terms, quadrilaterals,
isoceles & equilateral triangles, vertically opposite angles etc. etc.

*please* bear with me if it is *sick* , its my 2nd post on some
newsgroup.

thanks

<< "uttre"

(1) sometime ago i read a blog of Stevey-Drunken's on "Maths everyday".
the distinctional points he proposed in his blog are exactly similar to
the ones i have got after doing some programming for 6 months. but he
had his points by reading "John Von Neumann and the Origins of Modern
Computing". I dont know him & neither i read that book but the points
he noticed & points i noticed are similar in many respects.
Taht's all very nice, but has absolutely nothing whatsoever to
do with the C++ programming language, so it's 100% off-topic here.

As you may have noticed, you got a lot of replies, but none
that really helped you a lot. That's what happens when you get
waaaaay off-topic.

Try these newsgroups instead:

sci.math (I set follow-up here)
alt.math
alt.math.moderated

I think you'll get MUCH better responses there.

The reason is, computer programming is a skill which requires
relatively little mathematics. About all you need to know is:

1. Grade-school arithmetic.
2. A little boolean algebra (and, or, not, DeMorgan's Law, etc)
3. A little bit of high-school algebra helps sometimes (optional)

That's it. Any 14-year-old knows those things already.

Now, if you're doing programming in a heavily mathematical field
(say, university mathematics research, or theoretical physics, or
climate modeling, or advanced cartography using fancy projections)
then you may need to learn more math. But for most programming,
little math is required. So most programmers here are not
advanced mathematicians, and can't advise you very well on
higher-mathematics textbooks.

So go to the groups I list above, esp. "sci.math". I think you'll
get the advice you need there.

--
Cheers,
Robbie Hatley
East Tustin, CA, USA
lone wolf intj at pac bell dot net
(put "[usenet]" in subject to bypass spam filter)
http://home.pacbell.net/earnur/
Jul 17 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jack Higgs | last post by:
Has anyone got any ideas how I could go about producing a maths program for Primary School pupils? The coding isn't such a problem (ie random numbers etc), it's acctually figuring out how to...
5
by: Scott Gunn | last post by:
Hello All, In VB.Net 2003 why is this the result to a simple maths calculation? 3.53 - 3.52 = 0.00999999046325684 Its not just this one either try this: 1.001 - 0.001 = 0.999999999999989
2
by: Andrew Bullock | last post by:
Hi guys i hope you can help me out with this one, Im trying to construct a very simple method of time series predicition (i think thats what its called, ill explain anyway incase im wrong). ...
20
by: Daisy | last post by:
Something simple, I'm sure. My code: System.Windows.Forms.MessageBox.Show(((Int32)Math.Ceiling(1966 / 100)).ToString()); I'm expecting 20, but getting 19. What am I doing wrong? Thanks --
6
by: David Sobey | last post by:
hi everyone i'm looking to make a program that not only implements some fancy control stuff with GDI+, but does some tricky maths using polymorphic binary data trees, matrices, etc. Now I've...
3
by: hars2010 | last post by:
hey i got this assignment in maths.i really need help guys.the question is below.The program should: It first clears the screen and then displays the next 3 lines. a1x + b1y + c1y =d1 a2x +...
34
by: Rory Campbell-Lange | last post by:
>>(1.0/10.0) + (2.0/10.0) + (3.0/10.0) 0.60000000000000009 0.59999999999999998 Is using the decimal module the best way around this? (I'm expecting the first sum to match the second). It seem...
5
by: Ibys | last post by:
Hi, i am just starting to learn javascript, so i am probably doing something very simple wrong. i have read a lot of articles on maths in java, but cant find anything simple enough for my problem. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.