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

You are not logged in.

#26 2012-10-19 11:40:01

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,666

Re: Coding

How the heck can anyone get bored of C++? Like those Java coders, never could understand them.


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#27 2012-10-20 01:57:22

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

Re: Coding

It's kinda mainstream... Everybody is used to it...


“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-10-20 06:19:50

ShivamS
Member
Registered: 2011-02-07
Posts: 3,532

Re: Coding

Frankly, C++ is too...procedural. I tried Perl, but prefer Ruby instead. And I agree with Stefy, C++ is as if you are instantaneously doing something you have to, rather then enjoying programming.

Offline

#29 2012-10-20 08:16:06

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,666

Re: Coding

Frankly, C++ is too...procedural

In your educational system or at work you will soon enough run into a functional rather than procedural language.


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#30 2012-10-21 08:59:56

ShivamS
Member
Registered: 2011-02-07
Posts: 3,532

Re: Coding

I still prefer other languages over C++.

Offline

#31 2012-10-21 09:42:13

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,666

Re: Coding

I prefer functional over procedural. But once you learned procedural first, forever will you think that way.


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#32 2012-10-22 07:08:03

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

Re: Coding

Have you two ever tried something of the sorts of APL and J?


“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

#33 2012-10-22 11:14:12

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,666

Re: Coding

Hi;

I didn't like APL. Pretty early on I got fascinated by AI so the functional paradigm is where I stayed.


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#34 2012-10-22 19:54:36

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

Re: Coding

So, you have tried Lisp or Prolog?


“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

#35 2012-10-23 01:25:58

ShivamS
Member
Registered: 2011-02-07
Posts: 3,532

Re: Coding

I have tried Lisp.

Offline

#36 2012-10-23 01:27:35

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,666

Re: Coding

Mathematica uses prolog. Maxima uses lisp. I have used lisp for a while.


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#37 2012-10-23 01:31:43

ShivamS
Member
Registered: 2011-02-07
Posts: 3,532

Re: Coding

I did not like Lisp.

Offline

#38 2012-10-23 01:38:09

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,666

Re: Coding

( * 1 2 3 4 5 ) yields 120


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#39 2012-10-23 01:39:39

ShivamS
Member
Registered: 2011-02-07
Posts: 3,532

Re: Coding

Um, okay.

Offline

#40 2012-10-23 01:43:09

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,666

Re: Coding

Don't remember all that much about the language but I do remember writing a package to do multiprecision arithmetic in it.


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#41 2012-10-23 01:43:44

ShivamS
Member
Registered: 2011-02-07
Posts: 3,532

Re: Coding

I like creating compression systems. On IDE based languages anyways...

Offline

#42 2012-10-23 05:43:53

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

Re: Coding

I am very impressed by the shortness of coded that gets written in J. I.e. it takes only 4 characters to sum a matrix +/+/...


“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

#43 2012-10-23 07:42:56

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,666

Re: Coding

Sum a matrix?


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#44 2012-10-23 09:17:46

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

Re: Coding

I meant sum the elements of a matrix of numbers...


“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

#45 2012-10-23 09:27:34

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,666

Re: Coding

But look at the awesome power of lisp

(mapcar #'+ '(1 2 3 4 5) '(10 20 30 40 50)

yields (11 22 33 44 55)

or M's power

{1,2,3,4,5}+{10,20,30,40,50} -> {11,22,33,44,55}

No annoying loop. No remembering whether arrays start at 0 or 1. No going past the end of the array.


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#46 2012-10-23 10:11:39

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

Re: Coding

J can do that too.

    1 2 3 4 5+11 12 13 14 15
12 14 16 18 20

Last edited by anonimnystefy (2012-10-23 10:12:03)


“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

#47 2012-10-23 10:16:17

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,666

Re: Coding

Can J do this?

(Sum[x^k,{k,1,6,1}]/6)^5 //Expand


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#48 2012-10-23 10:21:37

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

Re: Coding

You must remeber J is neither a mathematical package nor a symbolic manipulator...


“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

#49 2012-10-23 10:25:23

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 86,666

Re: Coding

So then why should anyone use it?


In mathematics, you don't understand things. You just get used to them.
Of course that result can be rigorously obtained, but who cares?
Combinatorics is Algebra and Algebra is Combinatorics.

Offline

#50 2012-10-23 10:34:10

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

Re: Coding

Why use Lisp?


“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