EricDarve / numerical_linear_algebra

Julia code for the book Numerical Linear Algebra
110 stars 40 forks source link

Typos on Page 366, 368, 372, 376, 380? #242

Open HuiOuyangMaths opened 1 year ago

HuiOuyangMaths commented 1 year ago

Dear Professor Darve, One page 368, you wrote "A couple of useful commands are eye to create the identity matrix,...". At least "eye" or "eyes" is not defined in current versions of Julia, right? Probably "eye(n)" is now replaced by "Matrix(I,n,n)", right? Thanks a lot for your excellent book. Best, Hui.

HuiOuyangMaths commented 1 year ago

In addition, on page 366, in your output of @printf("The formatting of %5.3f is similar to the C language\n",pi), there is a tiny type. The word "language" is missing. ^v^ Thanks a lot. :)

HuiOuyangMaths commented 1 year ago

Page 380 "Simple plots": I think I checked on my terminal that I successfully installed: Dict{String, VersionNumber} with 2 entries: "IJulia" => v"1.23.3" "PlotlyJS" => v"0.18.10" But when I type ups the plotting code on page 380, I get the error: "UndefVarError: plot not defined" As the following link shows, it seems that I am not the only person getting issues using PlotlyJS on Jupyter: https://github.com/JuliaPlots/Plots.jl/issues/2003

HuiOuyangMaths commented 1 year ago

Page 376: In order to get the output as a tuple shown on the book, "@show flog(20,0.5) log(1-0.5)" should be "@show flog(20,0.5), log(1-0.5)" There is a comma missing.

HuiOuyangMaths commented 1 year ago

Page 372:

  1. You wrote "... provided by Julia include trace, set, ...". I think you want to replace "trace" by "tr" because "trace" is not defined.
  2. To use vectors x and y defined at the beginning of page 372, the capital X and Y in " @. X = sin(cose(Y))" should be lower case?
EricDarve commented 1 year ago

Thanks for all these comments. I will look into that. I need to check with SIAM how an errata can be published or how the manuscript can be updated.

HuiOuyangMaths commented 1 year ago

Dear Professor Darve,

Thank you very much for your response. I might be wrong. I am glad that you will have a loo at the places on your book that I mentioned.

Thanks a lot. 😊

Best wishes! Sincerely yours, Hui Ouyang.

On Oct 7, 2022, at 10:29 AM, Eric Darve @.***> wrote:

 Thanks for all these comments. I will look into that. I need to check with SIAM how an errata can be published or how the manuscript can be updated.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.