Archiv der Kategorie Euler

December Problem

I found the following problem on the page of the wonderful Science Blogs. It is in German. Let me translate it. Bernd writes two different numbers between 1 and 1000 on two cards of paper. Anna selects one, and after … Weiterlesen

07. Dezember 2015 von mga010
Kategorien: English, Euler | Schreibe einen Kommentar

Linear Optimization with Maxima and EMT

Maxima and EMT do of course have implementations of the Simplex algorithm. The algorithm in Maxima seems to work differently for floating point numbers and for fractions. Here is an example in fractions. We solve a problem in standard form. … Weiterlesen

21. Oktober 2015 von mga010
Kategorien: English, Euler | Schreibe einen Kommentar

Povray in Euler Math Toolbox

EMT can do a lot of 3D plots, but it is not an OpenGL application. This means that it has restrictions concerning hidden surfaces and intersecting objects. But if you install Povray you can do a lot more. Note that … Weiterlesen

17. Oktober 2015 von mga010
Kategorien: English, Euler | Schreibe einen Kommentar

Random Dices

This is just an answer to a question that came up in a discussion. Can you simulate 2 dice throws and display the frequencies in EMT? Actually, this is quite simple. We demonstrate it with 20 repetitions first. The trick … Weiterlesen

05. Oktober 2015 von mga010
Kategorien: English, Euler | Schreibe einen Kommentar

About Multi-Variate Functions in EMT

You define a vector valued function of two variables in EMT as follows. >function f([x,y]) := [x^2+y^2-10,x*y-1] >broyden(„f“,[1,2]) [0.317837, 3.14626] Then f can be used in the form f(x,y) or f(v) with a 1×2 vector v. The Broyden algorithm needs … Weiterlesen

30. September 2015 von mga010
Kategorien: English, Euler | Schreibe einen Kommentar

Visualizing the Newton Method in EMT

In a post by squareCircleZ I found a visualization of the Newton method with JavaScript. This looks like a modern and sleek way of providing demos to students. I have some doubts about the depth of the insights gained by this … Weiterlesen

25. August 2015 von mga010
Kategorien: English, Euler | 3 Kommentare

Functions for Maxima in EMT

Assume we want a function that evaluates a number to n digits using Maxima’s big float numbers. You can write a purely symbolic function for this. >function N(x,n) &&= block(fpprec:n, bfloat(x)) block(fpprec : n, bfloat(x)) >&N(pi,100) 3.141592653589793238462643383279502884197169399375105820974944\ 592307816406286208998628034825342117068b0 The value … Weiterlesen

20. August 2015 von mga010
Kategorien: English, Euler | Schreibe einen Kommentar

Reading and Displaying Stock Data with EMT

I am not sure if I ever posted about this here. It is possible to read stock data in EMT from Yahoo. The code for this is contained in the utility file „getstock.e“. >load getstock; >v=getstock(„AlV.DE“,day(2012,1,1)); // AlV.DE = German … Weiterlesen

19. August 2015 von mga010
Kategorien: English, Euler | Schreibe einen Kommentar

The „Two Envelopes Problem“

During the recent four day Holidays I found time to think about the paradox of the two envelopes: Assume you are given two envelopes, one containing the double amount of the other. You select one of them by chance and … Weiterlesen

04. August 2015 von mga010
Kategorien: English, Euler | Schreibe einen Kommentar

Spirograph type Spirals in EMT

This is related to post in Math Less Travelled by Brent Yorgey (see also here by John D. Cook). They call the curve „mystery curve“. Of course, I had to try this in EMT (Euler Math Toolbox). The first attempt was the … Weiterlesen

29. Juni 2015 von mga010
Kategorien: English, Euler | Schreibe einen Kommentar

← Ältere Artikel

Neuere Artikel →