janbs

10 Reputation

One Badge

11 years, 277 days

MaplePrimes Activity


These are questions asked by janbs

I wonder - would it be possible to automate the following way of adding a legend to plots? If so - how?

plot([f(x), g(x), 7], legend = ['f(x)' = f(x), 'g(x)' = g(x), y = 7]);


In my opinion such a legend makes the plot much more readable - but most students (and others) will usually be too lazy to type this out, hence the wish for it be to automated.

Any help will be much appreciated.

Greetings

I am left wondering why evalf as well as right clicking and selecting approximate both are in error.

Try 1/2*sqrt(109) and find a solution with 5 digits (english isnt my first language so the wording may not be correct).

If you calculate it as 1/2*sqrt(109.0) you correctly get 5.2202

However, if you use evalf(1/2*sqrt(109)) or 1/2*sqrt(109) then right click and approximate with 5 digits you incorrectly get 5.2200.

I assume this is because both incorrectly round to 5 digits on sqrt(109) before dividing by 2 - a common mistake for very inexperienced students but surely not something I would expect from Maple.

Please explain and better yet fix. Thanks.

Page 1 of 1