## Maxima Language Code Translations

Have you seen these sites?

Hyperpolyglot.org  and Rosettacode.org  provide a valuable help for users who need to solve a problem in a new language:  Line-by-line comparisons  with lots of other languages.

For Maxima users, Hyperpolyglot’s computer-algebra system section  has side-by-side tables of comparisons with Mathematica, Maple, Sage and Numpy.

Rosettacode is arranged by task, with user-contributed solutions to common tasks in lots of languages.  I was motivated to write this post while working on a new Maxima version of an ordinary differential equations course I’ve taught for years using MATLAB.

Here is Rosettacode’s section on the Euler Method  — a method for numerical approximation to the solution of a first order ordinary differential equation.

For the record, this is the version I decided to teach in my course:

```(    /* Euler Method for  initial value problem
y'=xy ,  y(0)=0.5   */
x0:0,
y0:.5,
h:.25,
nsteps:10,
xeuler:makelist(0,i,1,nsteps+1,1),
yeuler:makelist(0,i,1,nsteps+1,1),
xeuler:x0,
yeuler:y0,
for i:1 thru nsteps do (
xeuler[i+1]:xeuler[i]+h,
yeuler[i+1]:yeuler[i]+h*xeuler[i]*yeuler[i]
)
);```
{"ft_lang_label":"__label__en","ft_lang_prob":0.7937155,"math_prob":0.7183733,"size":1118,"snap":"2021-04-2021-17","text_gpt3_token_len":305,"char_repetition_ratio":0.101436265,"word_repetition_ratio":0.0,"special_character_ratio":0.25223613,"punctuation_ratio":0.192,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97399324,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-23T01:24:19Z\",\"WARC-Record-ID\":\"<urn:uuid:53325ff5-a5db-4d1b-a1b7-e581f1180aad>\",\"Content-Length\":\"59819\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f57471e9-88d9-4b9f-a0d9-199b4948dbea>\",\"WARC-Concurrent-To\":\"<urn:uuid:5b01028f-023b-4c7f-b6ed-c989b1b95dc7>\",\"WARC-IP-Address\":\"192.0.78.25\",\"WARC-Target-URI\":\"https://themaximalist.org/tag/numpy/\",\"WARC-Payload-Digest\":\"sha1:2EVSTGIQW6TSYBK2WSBQTRVY6JDCQUZV\",\"WARC-Block-Digest\":\"sha1:XJZFKM3QF4PIFBFTVZOAS5WQDNPGGGMH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610703531702.36_warc_CC-MAIN-20210123001629-20210123031629-00662.warc.gz\"}"}