[sage-support] error in simple code for synbolic computation

2017-09-27 Thread Madhurima Mukhopadhyay
The followimg code is giving me no results. I cannot understand the reason behind this p=297079 K=GF(p) a1,a2,a3,h0,h1=var('a1 a2 a3 h0 h1') RHS= (x - a1)*(x - a2)*(x - a3)*(x^2+h1*x+h0)*(x^4 + 45948*x^3 + 55848*x^2 + 84717*x + 225935) Coeff = RHS.coefficients(x,sparse= False) solve([Coeff[ 7 ] ==

[sage-support] Solving a system to equations in a specified form

2017-12-07 Thread Madhurima Mukhopadhyay
I want to find the value of h0,h1,h2,h3,h4 such that (x - a1)*(x-a2)*(x-a3)*(h0+h1*x^1+h2*x^2+h3*x^3+h4*x^4+x^5)=(x+b)*g2+(a*x+d) for some a,b,d,in GF(p). Below is my code which is unable to solve it a,b,d,a1,a2,a3,h0,h1,h2,h3,h4=var('a b d a1 a2 a3 h0 h1 h2 h3 h4') RHS= (x - a1)*(x-a2)*(x-a3)*

Re: [sage-support] Re: Solving a system to equations in a specified form

2017-12-08 Thread Madhurima Mukhopadhyay
p=534601 is known Defining coefficients is redundant , it is to be omitted. On 12/9/17, slelievre wrote: > - Original message (slightly reformatted) > I want to find the value of h0, h1, h2, h3, h4 such that > > (x - a1)*(x - a2)*(x - a3)*(h0 + h1*x^1 + h2*x^2 + h3*x^3 + h4*x^4 + >

[sage-support] Finding minimum value of a function

2020-08-25 Thread Madhurima Mukhopadhyay
Suppose there is a function f over the Rational Field. Let's assume that f is a function of 4 variables v1,v2,v3,v4. How to find the minimum value of f, when treated as a function of a single variable, for example v1 and the value of v1 at which this minimum occurs. -- Madhurima Mukhopa