1 | initial version |

Using the Alekseyev suggestion I was able to write a python function that solves the problem.

```
def common_factor(expr_list):
numerators, denominators = zip(*map(lambda expr: (expr.numerator(),expr.denominator()),expr_list))
return gcd(numerators)/gcd(denominators)
```

2 | No.2 Revision |

Using the Alekseyev suggestion I was able to write a simple python function that solves the problem.

```
def common_factor(expr_list):
numerators, denominators =
```~~zip(*map(lambda expr: (expr.numerator(),expr.denominator()),expr_list))
~~zip(*[expr.numerator_denominator() for expr in expr_list])
return gcd(numerators)/gcd(denominators)

3 | No.3 Revision |

Using the Alekseyev suggestion I was able to write a simple python function that solves the problem.

`def common_factor(expr_list): numerators, denominators = zip(*[expr.numerator_denominator() for expr in expr_list]) return`

~~gcd(numerators)/gcd(denominators)~~

4 | No.4 Revision |

Using the Alekseyev suggestion I was able to write a simple python function that solves the problem.

def common_factor(expr_list): numerators, denominators = zip(*[expr.numerator_denominator() for expr in expr_list]) return gcd(numerators)/gcd(denominators)

5 | No.5 Revision |

Using the @Max Alekseyev suggestion I was able to write a simple python function that solves the problem.

```
def common_factor(expr_list):
numerators, denominators = zip(*[expr.numerator_denominator() for expr in expr_list])
return gcd(numerators)/gcd(denominators)
```` `

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.