Skip to content

Errors found in library_numpy notebok #181

Open

Description

@yakutovicha
No description provided.

Activity

  1. pinned this issue on Dec 14, 2023
  2. GCatarina commented on Dec 14, 2023

    @GCatarina

    Typo:

    Exercises on specifying the data type.

    1. Create an array of 100 booleans all set to True. The array should have dimensions 2x3.

    The part "The array should have dimensions 2x3." should be removed

  3. fabioacl commented on Dec 14, 2023

    @fabioacl
    Contributor

    In Indexing, slicing, and iterating, the first sentence after the first python code starts with Unlinke.

  4. yakutovicha commented on Dec 14, 2023

    @yakutovicha
    MemberAuthor

    In the final exercises, when integrating the function we need to be explicit about the density of x points. Because different point density gives slightly different results. "Slightly different" means sufficient enough to cause the test failure.

  5. baffelli commented on Dec 14, 2023

    @baffelli
    Member

    For the exercise on eigenvalues:

    • The solution uses eigh. If people use eig the test will fail because the order of eigenvalues is different. This can be overcome by testing for invariants like the trace and the determinant.
    • The exercise should ideally be parametrized in order for multiple matrices to be teasd
  6. GCatarina commented on Dec 14, 2023

    @GCatarina

    In Exercises on NumPy routines, exercise 2., tests fail if we do not use the fact that the matrix is hermitian: eig and eigh give same eigenvalues but in different orders, and eigenvectors are slightly different

  7. baffelli commented on Dec 14, 2023

    @baffelli
    Member

    In Exercises on NumPy routines, exercise 2., tests fail if we do not use the fact that the matrix is hermitian: eig and eigh give same eigenvalues but in different orders, and eigenvectors are slightly different

    Thanks, we already noted this above

  8. unpinned this issue on Dec 15, 2023
  9. added this to the milestone on Mar 11, 2025
  10. removed this from the milestone on Sep 29, 2025
  11. added theissue type on Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions