Skip to content

Code issues in the book #158

@BjarkeHautop

Description

@BjarkeHautop

Here are some code issues in the book:

  • Chapter 5 & 6: The book only has 1 thread when the book renders. Thus, the examples about speed, race conditions, quasi-random ordering, etc., don't work. This makes it confusing when looking at the code output in the book (and the text around it doesn't match the observed output from the code).

  • Chapter 6: When using CUDA, it gives the error "ERROR: The following 1 direct dependency failed to precompile: CUDA" in the book.

  • Chapter 17: When generating Sobol sequence it gives the error "ERROR: invalid redefinition of constant Main.s".

  • Chapter 19: When using IntervalArithmetic the book says "or using the shorthand 0.1..0.2" which returns "ERROR: UndefVarError: .. not defined in Main" (and later also when calling h(3..4)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions