Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question
0

Can I define a symbolic equation where the variables are concatenating?

asked 7 years ago

SAvaGE gravatar image

Hi, Can I define a symbolic equation with variable concatenating?

For example:

let xF2

How can I define the following equation:

11111x1111=2x+2

where the x is a digit in the left number.

(The obvious way is by taking the binary exression of that number i.e Σi=ni=02ibi)

Preview: (hide)

Comments

If x is in GF(2), it is not a "digit". The equality should work in integers? (The 2x+2 is maybe either 2, well 10, but then... or 6 ... The number on the left side is bigger.)

dan_fulea gravatar imagedan_fulea ( 7 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 7 years ago

dom gravatar image

Defining the equation is easy :

x = var('x',domain='integer') res =solve([x^2 ==1,2^9+2^8+2^7+2^6+2^5+x+2^3+2^2+2^1+2^0 == 2*x+2],x) print "res = ",res # no solution

but like Dan Fuela pointed out, your equation has no solution when x in F2 + you should accept the fact that you mix up many things "the concatening operator" (no meaning in maths), F2 is for you exactly the same than the set of the two integers {0,1} and so on.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 7 years ago

Seen: 710 times

Last updated: Jun 20 '17