Square Root Calculator Function

  • Share this:

Code introduction


This function calculates the square root of the input number.


Technology Stack : math

Code Type : Mathematical calculation

Code Difficulty :


                
                    
import re
import math
import random
import sys
import os
import json

def calculate_square_root(num):
    """
    计算一个数的平方根。
    """
    return math.sqrt(num)                
              
Tags: