Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3715 by t.hi...@gmail.com: ufuncify with logarithms
http://code.google.com/p/sympy/issues/detail?id=3715

ufuncify(x, x*log(10)) produces the following exception


---------------------------------------------------------------------------
CodeWrapError                             Traceback (most recent call last)
<ipython-input-12-f6cc06919001> in <module>()
----> 1 ufuncify(x, x*log(10))

/home/thomas/gitrepos/sympy/sympy/utilities/autowrap.py in ufuncify(args, expr, **kwargs)
    479     # first argument accepts an array
    480     args[0] = x[i]
--> 481     return autowrap(C.Equality(y[i], f(*args)), **kwargs)

/home/thomas/gitrepos/sympy/sympy/utilities/autowrap.py in autowrap(expr, language, backend, tempdir, args, flags, verbose, helpers)
    404         helps.append(Routine(name, expr, args))
    405
--> 406     return code_wrapper.wrap_code(routine, helpers=helps)
    407
    408

/home/thomas/gitrepos/sympy/sympy/utilities/autowrap.py in wrap_code(self, routine, helpers)
    133             self._generate_code(routine, helpers)
    134             self._prepare_files(routine)
--> 135             self._process_files(routine)
    136             mod = __import__(self.module_name)
    137         finally:

/home/thomas/gitrepos/sympy/sympy/utilities/autowrap.py in _process_files(self, routine)
    158         if retcode:
    159             raise CodeWrapError(
--> 160 "Error while executing command: %s" % " ".join(command))
    161
    162

CodeWrapError: Error while executing command: f2py -m wrapper_module_6 -c wrapped_code_6.f90

If I replace log(2) by its numerical value ufuncify works as expected.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy-issues+unsubscr...@googlegroups.com.
To post to this group, send email to sympy-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to