Images were working when I posted. Any way the latex code shown instead of 
images is correct. Here I attach a MathML html file with the original post 
anyway.

On Wednesday, August 14, 2013 4:40:29 PM UTC+4, Boris Kheyfets wrote:
>
> Hello SymPy users and devs,
>
> I have a large expressions with
>
>    - [image: $\log^2(\frac{R}{R_1})$] split into [image: $\log^2(R) - 2 
>    \log(R) \log(R_1) + \log^2 (R_1)$], and
>    - [image: $\log^3(\frac{R}{R_1})$] split into [image: $\left [ \log(R) 
>    - \log(R_1)\right ]^3 = \ldots$] 
>
> I want to combine logs (so to make it more readable).
>
> I think I need to factor the thing first, but factor fails and powsimpmakes 
> it even worse.
>
> Here's an image of the of the expression:
>  [image: $$\Gamma_{R}^{2} R^{4} R_{1}^{2} + 4 \Gamma_{R}^{2} R^{2} 
> R_{1}^{4} \log^{3}{\left (R \right )} - 12 \Gamma_{R}^{2} R^{2} R_{1}^{4} 
> \log^{2}{\left (R \right )} \log{\left (R_{1} \right )} - 8 \Gamma_{R}^{2} 
> R^{2} R_{1}^{4} \log^{2}{\left (R \right )} + 12 \Gamma_{R}^{2} R^{2} 
> R_{1}^{4} \log{\left (R \right )} \log^{2}{\left (R_{1} \right )} + 16 
> \Gamma_{R}^{2} R^{2} R_{1}^{4} \log{\left (R \right )} \log{\left (R_{1} 
> \right )} + 2 \Gamma_{R}^{2} R^{2} R_{1}^{4} \log{\left (R \right )} - 4 
> \Gamma_{R}^{2} R^{2} R_{1}^{4} \log^{3}{\left (R_{1} \right )} - 8 
> \Gamma_{R}^{2} R^{2} R_{1}^{4} \log^{2}{\left (R_{1} \right )} - 2 
> \Gamma_{R}^{2} R^{2} R_{1}^{4} \log{\left (R_{1} \right )} - \Gamma_{R}^{2} 
> R^{2} R_{1}^{4} - 2 \Gamma_{R}^{2} R_{1}^{6} \log^{2}{\left (R \right )} + 
> 4 \Gamma_{R}^{2} R_{1}^{6} \log{\left (R \right )} \log{\left (R_{1} \right 
> )} - 2 \Gamma_{R}^{2} R_{1}^{6} \log^{2}{\left (R_{1} \right )} + 4 
> \Gamma_{R} P R^{4} R_{1}^{2} \log{\left (R \right )} - 4 \Gamma_{R} P R^{4} 
> R_{1}^{2} \log{\left (R_{1} \right )} + 2 \Gamma_{R} P R^{4} R_{1}^{2} - 8 
> \Gamma_{R} P R^{2} R_{1}^{4} \log^{3}{\left (R \right )} + 24 \Gamma_{R} P 
> R^{2} R_{1}^{4} \log^{2}{\left (R \right )} \log{\left (R_{1} \right )} - 8 
> \Gamma_{R} P R^{2} R_{1}^{4} \log^{2}{\left (R \right )} - 24 \Gamma_{R} P 
> R^{2} R_{1}^{4} \log{\left (R \right )} \log^{2}{\left (R_{1} \right )} + 
> 16 \Gamma_{R} P R^{2} R_{1}^{4} \log{\left (R \right )} \log{\left (R_{1} 
> \right )} + 8 \Gamma_{R} P R^{2} R_{1}^{4} \log^{3}{\left (R_{1} \right )} 
> - 8 \Gamma_{R} P R^{2} R_{1}^{4} \log^{2}{\left (R_{1} \right )} - 2 
> \Gamma_{R} P R^{2} R_{1}^{4} + 4 \Gamma_{R} P R^{2} R_{1}^{2} 
> \log^{2}{\left (R \right )} - 8 \Gamma_{R} P R^{2} R_{1}^{2} \log{\left (R 
> \right )} \log{\left (R_{1} \right )} - 4 \Gamma_{R} P R^{2} R_{1}^{2} 
> \log{\left (R \right )} + 4 \Gamma_{R} P R^{2} R_{1}^{2} \log^{2}{\left 
> (R_{1} \right )} + 4 \Gamma_{R} P R^{2} R_{1}^{2} \log{\left (R_{1} \right 
> )} - 4 \Gamma_{R} P R_{1}^{4} \log{\left (R \right )} + 4 \Gamma_{R} P 
> R_{1}^{4} \log{\left (R_{1} \right )} + 8 P^{2} R^{4} R_{1}^{2} 
> \log^{2}{\left (R \right )} - 16 P^{2} R^{4} R_{1}^{2} \log{\left (R \right 
> )} \log{\left (R_{1} \right )} + 8 P^{2} R^{4} R_{1}^{2} \log^{2}{\left 
> (R_{1} \right )} + 2 P^{2} R^{4} R_{1}^{2} - 2 P^{2} R^{2} R_{1}^{4} - 8 
> P^{2} R^{2} R_{1}^{2} \log^{2}{\left (R \right )} + 16 P^{2} R^{2} 
> R_{1}^{2} \log{\left (R \right )} \log{\left (R_{1} \right )} - 8 P^{2} 
> R^{2} R_{1}^{2} \log{\left (R \right )} - 8 P^{2} R^{2} R_{1}^{2} 
> \log^{2}{\left (R_{1} \right )} + 8 P^{2} R^{2} R_{1}^{2} \log{\left (R_{1} 
> \right )} + 2 P^{2} R^{2} - 2 P^{2} R_{1}^{2}$$]
>
> My question: is there a way to combine logs in this case?
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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/sympy.
For more options, visit https://groups.google.com/groups/opt_out.
Title: 2013-Aug-15, 16:03:10

Hello SymPy users and devs,

I have a large expressions with

  • log2(RR1) split into log2(R)-2log(R)log(R1)+log2(R1) , and
  • log3(RR1) split into [log(R)-log(R1)]3=

I want to combine logs (so to make it more readable).

I think I need to factor the thing first, but factor fails and powsimp makes it even worse.

Here's an image of the of the _expression_:

ΓR2R4R12+4ΓR2R2R14log3(R)-12ΓR2R2R14log2(R)log(R1)-8ΓR2R2R14log2(R)+12ΓR2R2R14log(R)log2(R1)+16ΓR2R2R14log(R)log(R1)+2ΓR2R2R14log(R)-4ΓR2R2R14log3(R1)-8ΓR2R2R14log2(R1)-2ΓR2R2R14log(R1)-ΓR2R2R14-2ΓR2R16log2(R)+4ΓR2R16log(R)log(R1)-2ΓR2R16log2(R1)+4ΓRPR4R12log(R)-4ΓRPR4R12log(R1)+2ΓRPR4R12-8ΓRPR2R14log3(R)+24ΓRPR2R14log2(R)log(R1)-8ΓRPR2R14log2(R)-24ΓRPR2R14log(R)log2(R1)+16ΓRPR2R14log(R)log(R1)+8ΓRPR2R14log3(R1)-8ΓRPR2R14log2(R1)-2ΓRPR2R14+4ΓRPR2R12log2(R)-8ΓRPR2R12log(R)log(R1)-4ΓRPR2R12log(R)+4ΓRPR2R12log2(R1)+4ΓRPR2R12log(R1)-4ΓRPR14log(R)+4ΓRPR14log(R1)+8P2R4R12log2(R)-16P2R4R12log(R)log(R1)+8P2R4R12log2(R1)+2P2R4R12-2P2R2R14-8P2R2R12log2(R)+16P2R2R12log(R)log(R1)-8P2R2R12log(R)-8P2R2R12log2(R1)+8P2R2R12log(R1)+2P2R2-2P2R12

My question: is there a way to combine logs in this case?

Reply via email to