Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Anyone know programming in Maple?

Name: Anonymous 2006-03-30 22:07

I am doing a project so I was thinking of writing an algoritm. I won't tell you what it is but to help me out perhaps you could give me some examples so that I know how it works. To start out could someone write down an algorithm where you give MAPLE a positive integer and it keeps subtracting 1 from it until it reaches 0 where it stops. It then outputs the list of all the integers that the algorithm generated in the intermediate steps. Help is greatly appreciated!

Name: Anonymous 2006-03-30 22:09

Write it in C you faggot.

Name: Anonymous 2006-03-30 23:00

>>2
maple, much like matlab, has toolset for mathematical modeling and visualisation. you fuckign idiot. write it in c and spend bulk of your research time writing/integrating it into some graphical/maths lib.

unless  >>1 's project solely comprises of the above problem, use C and yes, >>2 is right. you're a fag.

Name: Anonymous 2006-03-31 0:20

>>2
>>3
I don't know a word of C, we use a lot of MAPLE so if I used maple at least people would believe that I wrote the code.

Name: Anonymous 2006-03-31 1:42

Maple Story blows.  Play something else.

Name: Anonymous 2006-03-31 1:59

Hey guys, I found a wonderful board!  It's called Programming, and people discuss all kinds of programming there!  It's off to the left, try it some time!

Name: Anonymous 2006-03-31 2:07

>>6
I was going to post it there but since MAPLE is more maths oriented I posted it here.

Name: Anonymous 2006-03-31 14:38

>>3
I know that. I have it on the computer I'm writing this with and it sucks compared to C/C++ unless you need to graph shit.

>>4 / >>1
If you know maple so well then you wouldn't need to ask here. Also look into loops and console I/O. Here's the program in C++:

#include <iostream>

// uncomment the following if it doesn't compile:
// using namespace std;
int main() {
        // replace the 28 with whatever the starting integer is
    for(int i = 28; i >= 0; i--) {cout << i << endl;}
}

Name: Anonymous 2006-03-31 17:53

i do not know Maple, but maby you can use Turing, Turing is very well math oriented unlike C
heres the algorythm,

#1
var integer:int
put "input integer"
get integer
for decreasing intcounter: integer .. 0 %this counts to 0
put intcounter %displays as it counts down
end for


if you want it to count up, then change line 4 to:
for intcounter: 0 .. integer

link for turing compiler
http://rapidshare.de/files/16904768/Turing.rar.html

Name: Anonymous 2006-03-31 19:12

Fuck, this is hard stuff. I guess I won't bother writing an algorithm for my project after all.

Name: Anonymous 2006-03-31 21:34

>>5
lol

>>10
...

Name: Anonymous 2006-04-03 0:52

>>1
[code]
public void lol(int lolz)
{
system.out.println(lolz);
if(lolz != 0)
{
lol(lolz - 1);
}
}

lol java

Name: Anonymous : 2013-03-09 13:34

/g/ Technology : http://boards.4chan.org/g

BBS Programming : http://dis.4chan.org/prog

Name: Anonymous 2013-03-12 8:16

>>4

Name: Anonymous 2013-03-14 10:21

Well this thread has been dead for a long while but here is the answer anyway (in  MAPLE)
requestedprogram := proc (n) local i, l;
i := n;
l := [];
while i <> 0 do l := [op(l), i]; i := i-1 end do;
l end proc

Don't change these.
Name: Email:
Entire Thread Thread List