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

Login

Username

Password

Not registered yet?

#26 2012-10-20 10:40:01

bobbym
Administrator

Online

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.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#27 2012-10-21 00:57:22

anonimnystefy
Real Member

Offline

Re: Coding

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


The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

#28 2012-10-21 05:19:50

ShivamS
Super Member

Offline

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.


I have discovered a truly marvellous signature, which this margin is too narrow to contain. -Fermat
Give me a lever long enough and a fulcrum on which to place it, and I shall move the world. -Archimedes
Young man, in mathematics you don't understand things. You just get used to them. - Neumann

#29 2012-10-21 07:16:06

bobbym
Administrator

Online

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.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#30 2012-10-22 07:59:56

ShivamS
Super Member

Offline

Re: Coding

I still prefer other languages over C++.


I have discovered a truly marvellous signature, which this margin is too narrow to contain. -Fermat
Give me a lever long enough and a fulcrum on which to place it, and I shall move the world. -Archimedes
Young man, in mathematics you don't understand things. You just get used to them. - Neumann

#31 2012-10-22 08:42:13

bobbym
Administrator

Online

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.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#32 2012-10-23 06:08:03

anonimnystefy
Real Member

Offline

Re: Coding

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


The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

#33 2012-10-23 10:14:12

bobbym
Administrator

Online

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.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#34 2012-10-23 18:54:36

anonimnystefy
Real Member

Offline

Re: Coding

So, you have tried Lisp or Prolog?


The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

#35 2012-10-24 00:25:58

ShivamS
Super Member

Offline

Re: Coding

I have tried Lisp.


I have discovered a truly marvellous signature, which this margin is too narrow to contain. -Fermat
Give me a lever long enough and a fulcrum on which to place it, and I shall move the world. -Archimedes
Young man, in mathematics you don't understand things. You just get used to them. - Neumann

#36 2012-10-24 00:27:35

bobbym
Administrator

Online

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.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#37 2012-10-24 00:31:43

ShivamS
Super Member

Offline

Re: Coding

I did not like Lisp.


I have discovered a truly marvellous signature, which this margin is too narrow to contain. -Fermat
Give me a lever long enough and a fulcrum on which to place it, and I shall move the world. -Archimedes
Young man, in mathematics you don't understand things. You just get used to them. - Neumann

#38 2012-10-24 00:38:09

bobbym
Administrator

Online

Re: Coding

( * 1 2 3 4 5 ) yields 120


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#39 2012-10-24 00:39:39

ShivamS
Super Member

Offline

Re: Coding

Um, okay.


I have discovered a truly marvellous signature, which this margin is too narrow to contain. -Fermat
Give me a lever long enough and a fulcrum on which to place it, and I shall move the world. -Archimedes
Young man, in mathematics you don't understand things. You just get used to them. - Neumann

#40 2012-10-24 00:43:09

bobbym
Administrator

Online

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.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#41 2012-10-24 00:43:44

ShivamS
Super Member

Offline

Re: Coding

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


I have discovered a truly marvellous signature, which this margin is too narrow to contain. -Fermat
Give me a lever long enough and a fulcrum on which to place it, and I shall move the world. -Archimedes
Young man, in mathematics you don't understand things. You just get used to them. - Neumann

#42 2012-10-24 04:43:53

anonimnystefy
Real Member

Offline

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 +/+/...


The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

#43 2012-10-24 06:42:56

bobbym
Administrator

Online

Re: Coding

Sum a matrix?


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#44 2012-10-24 08:17:46

anonimnystefy
Real Member

Offline

Re: Coding

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


The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

#45 2012-10-24 08:27:34

bobbym
Administrator

Online

Re: Coding

But look at the awesome power of lisp

Code:

(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.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#46 2012-10-24 09:11:39

anonimnystefy
Real Member

Offline

Re: Coding

J can do that too.

Code:

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

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


The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

#47 2012-10-24 09:16:17

bobbym
Administrator

Online

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.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#48 2012-10-24 09:21:37

anonimnystefy
Real Member

Offline

Re: Coding

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


The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

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

bobbym
Administrator

Online

Re: Coding

So then why should anyone use it?


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#50 2012-10-24 09:34:10

anonimnystefy
Real Member

Offline

Re: Coding

Why use Lisp?


The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Board footer

Powered by FluxBB