code: def polyval(
      coeffs: JaxArray,
      x: JaxArray,
  ) -> JaxArray:
      with ivy.PreciseMode(True):
          promoted_type = ivy.promote_types(
              ivy.dtype(coeffs[0]), ivy.dtype(x[0])
          )
      coeffs, x = ivy.promote_types_of_inputs(coeffs, x)
      y = jnp.zeros_like(x)
      for pv in coeffs:
          y = y * x + pv
      y = jnp.array(y, dtype=jnp.dtype(promoted_type))
      return y
  
file_path: ivy/ivy/functional/backends/jax/experimental/creation.py
imports: from typing import Optional, Tuple
  import math
  import jax
  import jax.numpy
  import jaxlib.xla_extension
  from ivy.functional.backends.jax import JaxArray
  import ivy
label_desc: Use image node_id 11 for calling a global function with example usage: polyval(coeffs, x) and returns: y