w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
Edit
In Place Editing Advanced Editing
  • References
  • Python
  • NumPy
  • Routines
  • Mathematical functions

numpy.deg2rad()

numpy.deg2rad(x[, out]) =

Convert angles from degrees to radians.

Parameters:

x : array_like

Angles in degrees.

Returns:

y : ndarray

The corresponding angle in radians.

See also

rad2deg
Convert angles from radians to degrees.
unwrap
Remove large jumps in angle by wrapping.

Notes

New in version 1.3.0.

deg2rad(x) is x * pi / 180.

Examples

>>> np.deg2rad(180)
3.1415926535897931
Links:
  • https://docs.scipy.org/doc/numpy-1.11.0/reference/generated/numpy.deg2rad.html
doc_NumPy
doc_NumPy
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.

Popular Articles
deg2rad (PHP 4, PHP 5, PHP 7) Converts the number in degrees to the radian equivalent float deg2rad ( fl
numpy.nanargmin() numpy.nanargmin(a, axis=None) [source] Return the indices of the minimum values in the specified axis ignoring NaNs. For all-NaN slices ValueErro
numpy.trunc() numpy.trunc(x[, out]) = Return the truncated value of the input, element-wise. The truncated value of the scalar x is the nearest integer i whic
numpy.fromfunction() numpy.fromfunction(function, shape, **kwargs) [source] Construct an array by executing a function over each coordinate. The resulting array there
numpy.save() numpy.save(file, arr, allow_pickle=True, fix_imports=True) [source] Save an array to a binary file in NumPy .npy format. Parameters: file : file


Return to View
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions