Sorry, i forgot to precise that : «*M:=matrix([[a*log(sin x)-2*log(x),
log(x)+log(y)],[log(x)-7*log(y), 3*log(x)-4log(x+3)+log(y)]]) *».
Le lundi 8 juin 2015 19:35:34 UTC+2, Souleiman omar hoche a écrit :
>
> Ok. Consider the example of the 2*2 square matrix : « *matrix([[a*log(sin
> x)-2*log(x), log(x)+log(y)], [log(x)-log(y), 3*log(x)-4*log(x+3)+log(y)]]) *»
> and the rules : «*logrules:=rule(log(x)+log(y)==log(x*y);
> log(x)-log(y)==log(x/y);y*log(x)==log(x^y)) *». If, i put : « *f:=a*log(sin
> x)-2*log(x) *» and use the command « *logrules f *», i obtain : «
> *log(sin^{a}(x)/x^2)* ».
>
> But if i use the command « *logrules M* », i obtain : « *There are no
> library operations named logrules*
>
> *Use HyperDoc Browse or issue *
>
> *)what op logrules *
>
> *to learn if there is any operation containing " logrules " in its *
>
> *name. *
>
> *Cannot find a definition or applicable library operation named *
>
> *logrules with argument type(s) *
>
> *Matrix(Expression(Integer)) *
>
> *Perhaps you should use "@" to indicate the required return type, *
>
> *or "$" to specify which version of the function you need. *».
>
> Is it possible to simplify the matrix M in one shot? Idest all the
> elements of the matrix M in one shot?
>
> Thanks in advance.
>
>
> Le lundi 8 juin 2015 18:34:25 UTC+2, Ralf Hemmecke a écrit :
>>
>> On 06/08/2015 05:35 PM, Souleiman omar hoche wrote:
>> > Hello everyone. I want to know if it is possible to simplify a square
>> matrix with
>> > the command "ruleset".
>> > Until now, I managed to simplify each element of the matrix separately,
>> but
>> > it is long (my matrix is 4 * 4).
>> > I want to write my pile of rules and use it to simplify the matrix at
>> once. The
>> > result will be in the form of a matrix where the elements are
>> simplified with
>> > the rules.
>>
>> The simplest thing that comes to my mind is to use map the rules on the
>> entries of the matrix. But unless you make your problem more specific, I
>> cannot help you much more.
>>
>> Maybe using "rule" or "ruleset" is even inappropriate for your problem.
>>
>> Ralf
>>
>
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.