Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about bitwise-xor

Read more about bitwise-xor

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - bitwise-xor

When I try to use the exponentiation operator in Rust, it gives strange results. Why?

I am trying to implement Complex-Step Differentiation in Rust. However, when raising the complex number to a power higher than 2, I get a completely different result than Julia. The algorithm works in...
test-img

TheBatz

rust

exponentiation

bitwise-xor

Votes: 0

Answers: 1

Latest Answer

Rust has no exponentiation operator. The binary operator ^ is not exponentiation, but bitwise exclusive-or. This is an operation defined only for integer types, and it returns the number whose set of...
test-img

user3840170

My code passes all my tests but some how edabit is not approving it

function bitwiseAND(n1, n2) { let a = n1.toString(2).padStart(8, "0"); let b = n2.toString(2).padStart(8, "0"); let x = ""; for (let i = 0; i < 8; i++) { ...
test-img

PAPPI-HS

javascript

bitwise-operators

bitwise-and

bitwise-xor

bitwise-or

Votes: 0

Answers: 1

Latest Answer

Your code is good, the only thing that is missing is to convert the binary to an integer on your return values. Insted of return +x Try return parseInt(x, 2)
test-img

Gass

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved