1

Closed

expt fails with complex number as second argument

description

(expt (exp -i) +i)
Unhandled exception during evaluation:
&who: #f
&message: "Specified cast is not valid."
&syntax:
  form: #f
  subform: #f
&stacktrace
  [1] "ironscheme.exceptions::raise(obj)"
  [2] "IronScheme.Runtime.Builtins.CompileCore(expr)"
  [3] "psyntax.expander::eval(x, env)"
  [4] "ironscheme.exceptions::dynamic-wind(in, proc, out)"
  [5] "ironscheme.exceptions::dynamic-wind(in, proc, out)"
  [6] "IronScheme.Runtime.Builtins.CallWithCurrentContinuation(fc1)"
  [7] "IronScheme.Runtime.R6RS.Exceptions.WithClrExceptionHandler(handler, thunk)"
  [8] "psyntax.main::eval-top-level(x)"
  [9] "IronScheme.Scripting.ScriptCode.Run(CodeContext codeContext, Boolean tryEvaluate)"
  [10] "IronScheme.Scripting.ScriptCode.Run(ScriptModule module)"
  [11] "IronScheme.Scripting.Hosting.CompiledCode.Evaluate(IScriptModule module)"
  [12] "IronScheme.Scripting.Hosting.ScriptEngine.ExecuteInteractiveCode(String code, IScriptModule module)"
  [13] "IronScheme.Scripting.Hosting.ScriptEngine.ExecuteCommand(String code, IScriptModule module)"
  [14] "IronScheme.Scripting.Shell.CommandLine.RunOneInteraction()"
  [15] "IronScheme.Scripting.Shell.CommandLine.TryInteractiveAction()"
  [16] "IronScheme.Scripting.Shell.CommandLine.RunInteractiveLoop()"
  [17] "IronScheme.Scripting.Shell.CommandLine.RunInteractive()"
  [18] "IronScheme.Scripting.Shell.CommandLine.Run()"
  [19] "IronScheme.Scripting.Shell.CommandLine.Run(IScriptEngine engine, IConsole console, ConsoleOptions options)"
  [20] "IronScheme.Scripting.Hosting.ConsoleHost.RunCommandLine(OptionsParser optionsParser)"
  [21] "IronScheme.Scripting.Hosting.ConsoleHost.ExecuteInternal()"
  [22] "IronScheme.Scripting.Hosting.ConsoleHost.Execute()"
  [23] "IronScheme.Scripting.Hosting.ConsoleHost.Run(String[] args)"
  [24] "IronScheme.Hosting.IronSchemeConsoleHost.Execute(String[] args)"
  [25] "IronScheme.Runtime.Program.Main(String[] args)"
Closed Oct 31, 2014 at 6:16 PM by leppie

comments

wrote Oct 31, 2014 at 6:16 PM

Resolved with changeset 111331.