473,770 Members | 4,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2112
"uttre" <ra*********@ya hoo.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.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(whi ch 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*********@ya hoo.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.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(whi ch 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*******@rock etmail.comwrote :
"uttre" <ra*********@ya hoo.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.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*********@ya hoo.comwrote in message news:11******** **************@ b28g2000cwb.goo glegroups.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.modera ted

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
2707
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 interface it or what objects to use where etc. I am having two or more random numbers up to say 20 displayed on the screen and I want the child to be able to fill in the answer (txt box obviosly). What can I use to display and use the sum in coding?...
5
419
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
1460
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). I have an arbitrary window of time every minute in which i can perform an operation. I want to perform this operation as close to the centre of the window as possible (dont ask why, this is a very basic, alsmost analogous description of the...
20
15887
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
1783
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 gotten a really bad impression of C# regarding its suitability for this kinda thing, ie no typedef,making matrix data type definitions and binary trees a pain. The only custom "data types" i can define is structs, which are really watered down...
3
2978
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 + b2y + c2y =d2 a3x + b3y + c3y =d3 The user is then required to input the integer values for a, b, c, d and the required accuracy for which he wants the calculation. ( e.g. 3 decimal places etc.)
34
1602
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 anachronistic that decimal takes strings as input, though. Help much appreciated; Rory
5
1759
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 am looking for how to get an IF statement to give me the correct output. I am trying to get it to give me a result for a weeks pay, taking that the code worked before i tried to add the IF statement, to make it that if HoursWorked >= 20, the rate of...
0
9439
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10237
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10071
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7431
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5326
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3987
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2832
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.