Ongeveer 24.000 resultaten
Koppelingen in nieuw tabblad openen
  1. Simple square root calculator - Code Review Stack Exchange

    17 jul. 2020 · Very simple square root calculator. I am sure it's terrible and can be made much better. I feel it's way too many lines. import random ## ask user for a number to find sq root for …

  2. c# - Square Root Calculator - Code Review Stack Exchange

    29 jan. 2015 · I have now written a simple square root calculator using the division method: static void Main(string[] args) { double num, sqrt = 0; int currentDecimal = 0, decimalAccuracyLevel,

  3. Reduce square root to simplest radical form - Code Review Stack …

    13 okt. 2016 · The function redsqrt(n) prints out the most reduced form of the square root of n. It calls on another function perfsq(n), which produces a list of perfect squares less than or equal …

  4. c++ - OOP Calculator Program - Code Review Stack Exchange

    4 jan. 2025 · The Calculator is functional; however I wanted to be able to write good code and not just functional code. I was wondering if there is a way to change the Calculation Class so …

  5. Square roots via Newton's method in Java - Code Review Stack …

    6 nov. 2020 · This time, one of my labs state that I need to write a complete java program which will calculate the square root of a number via Newton's method. The reason behind using …

  6. beginner - Calculator (Java) - Code Review Stack Exchange

    1 apr. 2017 · The calculator is simply a selection of functions. Those should be your objects. I'm not super familiar with Java anymore, but this code should be mostly right. A very simple way …

  7. IEEE 754 square root with Newton-Raphson - Code Review Stack …

    24 sep. 2019 · I have an implementation of the sqrt function that uses a combination of IEEE 754, packed bitfields, and the Newton-Raphson algorithm: decompose.h: #ifndef DECOMPOSE_H …

  8. c# - Square root implementations - Code Review Stack Exchange

    4 dec. 2014 · The question was: Write a function that calculates the root of a given number. Answer A = I wrote it for integers. just run up to half of the number Answer B+C = are for …

  9. Very basic calculator using methods - Code Review Stack Exchange

    15 I have made a basic calculator using methods. This is my first attempt at using methods and would like to see if I can improve on this as there is a lot of repeated code.

  10. Simple calculator in C - Code Review Stack Exchange

    25 mei 2015 · I made a very simple calculator in C that allows the user to perform calculations like addition, subtraction, multiplication and division. This is my first C program that I've made …