1 Answer

0 votes
by

Actually, the time-critical loops are usually implemented in C or Fortran. Much of SciPy is a thin layer of code on top of the scientific routines. Netlib is a huge repository of incredibly valuable and robust scientific algorithms written in C and Fortran. It would be silly to rewrite these algorithms and would take years to debug them. SciPy uses a variety of methods to generate “wrappers” around these algorithms so that they can be used in Python. Some wrappers were generated by hand coding them in C. The rest were generated using either SWIG or f2py. Some of the newer contributions to SciPy are either written entirely or wrapped with Cython.

A second answer is that for difficult problems, a better algorithm can make a tremendous difference in the time it takes to solve a problem. So using scipy’s built-in algorithms may be much faster than a simple algorithm coded in C.

Related questions

0 votes
    What is an Interpreted language?...
asked Dec 6, 2020 in Technology by JackTerrance
0 votes
    I've been given to understand that Python is an interpreted language... However, when I look at my Python source ... do these come in? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
0 votes
    A memory byte location contains the pattern 00101100. What does this pattern represent when interpreted as a binary ... ASCII code? Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    Do Numpy And Scipy Support Python 3.x?...
asked Apr 25, 2021 in Technology by JackTerrance
0 votes
    I'm working through my AI textbook I got and I've come to the last homework problem for my section: "Implement the ... in C# or Java? Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    I need to iterate through the elements in a numpy array so I can treat any zero elements separately. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    I need to iterate through the elements in a numpy array so I can treat any zero elements separately. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    why do we need language ? explain the types of language used in java? answer fast plz also not in very short Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    A ________________ in R programming language can also contain numeric and alphabets along with special characters like ... Programming Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    how are the programs written in high-level language converted into machine language? Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    Smart Contracts in R3 Corda are written using programming languages like ______ and _____. A. Go , C++ B. Java, Python C. Solidity, Vyper D. Java, Kotlin...
asked Feb 23, 2023 in Technology by JackTerrance
0 votes
    Which character in JavaScript code will be interpreted as XML markup? (a) ! (b) > (c) & (d) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Django is written in which programming language? 1. PHP 2. Python 3. Java 4.. C++...
asked Jul 4, 2021 in Technology by JackTerrance
0 votes
    In which language Cassandra is written?...
asked Apr 15, 2021 in Technology by JackTerrance
...