nshukla

@nshukla

Joined on Feb 26, 2022

  • what if somehow from previous time I have already Jupyter and want to create a new space for these lessons? I have problem with rise module, I'm using windows and conda: "UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment: Specifications:   - rise -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.8,<3.9.0a0|>=3.9,<3.10.0a0'] Your python: python=3.10" Is there a way to verify that these packages were correctly installed? (conda list, conda list | grep ... , import numpy)
     Like  Bookmark
  • Using these libraries: using Distributed, BenchmarkTools, Test, InteractiveUtils ##====================================================== Write code: 1. Consider the following function which estimates π by “throwing darts”, i.e. randomly sampling (x,y) points in the interval [0.0, 1.0] and checking if they fall within the unit circle. 2. Generate a million random numbers and add them. Parallelize the code using julia @distributed. Use @spawn, @spawnat and fetch the result 2. Consider the double for loop in the lap2d!() function: Look again at the double for loop in the lap2d! function and think about how you could use SharedArrays.
     Like  Bookmark