MATLAB solve

From: George (georgekurian79_at_yahoo.com)
Date: 01/30/05


Date: Sun, 30 Jan 2005 15:33:43 +0000 (UTC)

Hi
I need to solve a set of linear equations , for example

4*a+b=17 and 19*a+b=3

I need to find the solution for a and b , the only issue being that I
need all the operations ie the multiplication and addition operations
to be under mod 26

I tried this out but it did not work

A=solve('(mod(mod(4*a,26)+b),26)=17','(mod(mod(19*a)+b)=3')
??? Error using ==> solve
'(mod(mod(4*a,26)+b),26)=17' is not a valid expression or equation.

I know the solution ( under mod 26 operations ) is a= 6 and b= 19

How do I implement mod operations on the solve ?

George



Relevant Pages

  • Re: Math Package to Solve Linear Equations?
    ... matrices to solve systems of linear equations - i.e. enter the matrix and the y values and the program inverts the matrix and reports the x values. ... Tom George ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: MATLAB solve
    ... I'm not familiar with MatLab. ... Mathematica's Reduce command? ... "George" wrote in message ... > I need to solve a set of linear equations, ...
    (sci.math.symbolic)