Questions tagged [inverse]

In mathematics, a function y=f(x) tells us how to map input x to output y. Inverting a function (or an operator) is attempting to find a function f¯¹ that maps y to x, such that x=f¯¹(f(x)).

In mathematics, a function y = f(x) tells us how to map input x to output y. Inverting a function (or an operator) is attempting to find a function f -1 that maps y to x, such that x = f -1( f(x) ).

It is not always possible to find the inverse map, and sometimes it does not even exist.

One of the most common inverse problems is inverting an n × n matrix: only square matrices A with det(A) ≠ 0 have an inverse matrix A-1. See .

474 questions
-3
votes
2 answers

How to find inverse of mod when there is an unknown number

I have a formula like: (2x + 3×7 + 5×9 + 7×2) mod 11 = 4 How can I find x in Python? Trial and error is not allowed
STW
  • 1
  • 1
-3
votes
1 answer

EIGEN C++ Cannot Inverse MatrixXd

I'm tried run this code below and the inverse was done allright: #include #include using namespace std; using namespace Eigen; int main() { Matrix2d A; A << 3, 5, -7, 2; cout << "Here is the matrix A:\n" <<…
-3
votes
1 answer

Inverting an array using generic method using Swapping technique

I have tried to invert an array using generic method in O(n) time complexity.But it is showing error of incompatible types for E and integer?can anybody correct? below is my code: public class HelloWorld{ static Integer intarray[]={0,1,2,3,5,6};…
-3
votes
4 answers

Inverse one digit in string with python

I want to inverse a digit in a 3 digit string with Python. When I have string like below: 000 I want to inverse only one from 3 digits at once. So I want to have: 100 or 010 or 001 I am able to do this with something like: tmp = 000 first =…
Tatarinho
  • 754
  • 2
  • 11
  • 31
-4
votes
2 answers

conflicting types for my function "inverse", which is designed to return long long type

I try to figure out what I did wrong here, basically the function is for calculating the module inverse number to a-1 mod m. but program is getting errors. can somebody point out what is causing the errors? //calculating the inverse of the public…
user3374137
-4
votes
1 answer

Challenge with the inverse of time

I'm assigned with creating the inverse of a program I wrote a program that gave me the total number of seconds when I put in the hour minutes and seconds (ex) 1hr28m42s=5322seconds -now I need to make it so that when i put…
-5
votes
1 answer

Can anyone explain to me what is going on in this line of MatLAB code

y = rand(20,3); aa= unidrnd(2,20,3) - 1; val = ( aa & y<1.366e-04) | (~aa & y<8.298e-04); aa(val) = ~aa(val); I have this code. Can any one explain to me what is happening here. I have tried to understand it step by step (debugging) but I cannot…
nashynash
  • 375
  • 2
  • 19
-6
votes
1 answer

How can I do an average reverse in c#?

I need to create a function that if i enter a number, return 3 numbers that your averange is the same number that I pass for example if i entered the number 3,92 the return value is a list of numbers 3,89 3,57 4,3 (Randomize)
-6
votes
2 answers

How to inverse an integer in C?

I am trying to inverse a hexadecimal value. The result is wrong, however. #include #include #include int main(void) { uint32_t acc = 0xBBD1; printf("0x%X", htons(~acc)); // prints 0x2E44 } Let's do…
Adriansyah
  • 124
  • 11
1 2 3
31
32