Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#26 2012-05-02 09:57:20

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 90,758

Re: working out which addends from a list will add up to a given value.

Yes, Lisp uses it and so does the big boy on the block, M.


In mathematics, you don't understand things. You just get used to them.

I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.

Offline

#27 2012-05-02 09:59:40

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,673

Re: working out which addends from a list will add up to a given value.

And if Lisp uses it,and Maxima uses Lisp,then maybe Maxima also uses it...

But what is functional paradigm?


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#28 2012-05-02 10:02:52

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 90,758

Re: working out which addends from a list will add up to a given value.

I am not big on jargon or definitions. That is for set theorists, topologists and logicians. To me it means no more loops! Say goodbye to For Next, Do Until, Do While, Loop, Goto...


In mathematics, you don't understand things. You just get used to them.

I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.

Offline

#29 2012-05-02 10:05:52

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,673

Re: working out which addends from a list will add up to a given value.

I hate goto.

But what does it use if not loops?


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#30 2012-05-02 10:08:08

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 90,758

Re: working out which addends from a list will add up to a given value.

Lists!


In mathematics, you don't understand things. You just get used to them.

I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.

Offline

#31 2012-05-02 10:11:34

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,673

Re: working out which addends from a list will add up to a given value.

Lists made out of pointers?


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#32 2012-05-02 10:16:20

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 90,758

Re: working out which addends from a list will add up to a given value.

Pointers are a bane to humanity. My brother was the only programmer that liked them. They are very powerful but too dangerous for the modern programmer so they were eliminated in Java.

The functional way does not need them.


In mathematics, you don't understand things. You just get used to them.

I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.

Offline

#33 2012-05-02 10:17:51

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,673

Re: working out which addends from a list will add up to a given value.

So,do you mean like ordered and unordered lists like in Python? At least I think I saw them there.


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#34 2012-05-02 10:19:19

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 90,758

Re: working out which addends from a list will add up to a given value.

Python does do some functional programming.


In mathematics, you don't understand things. You just get used to them.

I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.

Offline

#35 2012-05-02 10:21:11

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,673

Re: working out which addends from a list will add up to a given value.

Wow,any of the people who thought me English would kill me if I said that.

So,how do you use lists for setting up GFs?


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#36 2012-05-02 10:25:14

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 90,758

Re: working out which addends from a list will add up to a given value.

You do not use even them to do it. M supports polynomial arithmetic and rational functions. In C++ you write a polynomial class.


In mathematics, you don't understand things. You just get used to them.

I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.

Offline

#37 2012-05-02 10:27:25

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,673

Re: working out which addends from a list will add up to a given value.

Wait,I don't understand what you would do to get the result.


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#38 2012-05-02 10:28:21

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 90,758

Re: working out which addends from a list will add up to a given value.

Same thing I was attempting to get you to do in Maxima. M works in the same way.


In mathematics, you don't understand things. You just get used to them.

I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.

Offline

#39 2012-05-02 10:30:59

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,673

Re: working out which addends from a list will add up to a given value.

Oh,the sum function. But wouldn't it be time consuming to write out that many functions?


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#40 2012-05-02 10:35:58

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 90,758

Re: working out which addends from a list will add up to a given value.

Some times it is impossible to avoid. This one took about 5 minutes.


In mathematics, you don't understand things. You just get used to them.

I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.

Offline

#41 2012-05-02 10:42:36

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,673

Re: working out which addends from a list will add up to a given value.

I think that you would have to let this one to procedural programming,because it is too much to write every function separately.


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#42 2012-05-02 11:14:30

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 90,758

Re: working out which addends from a list will add up to a given value.

You could do it but just do not do it by hand.


In mathematics, you don't understand things. You just get used to them.

I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.

Offline

#43 2012-05-02 11:23:36

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,673

Re: working out which addends from a list will add up to a given value.

I wasn't even thinking about doing it by hand. It would be insane. Don't you think I have learned at least a little from you?


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

Board footer

Powered by FluxBB