Closed
Description
Environment
Pythonnet version: 2.3
Python version: 3.5.5
Operating System: Windows 10
Details
hi,my code is:
static void Main(string[] args)
{
using (Py.GIL())
{
dynamic np = Py.Import("numpy");
Console.WriteLine(np.cos(np.pi * 2));
dynamic sin = np.sin;
Console.WriteLine(sin(5));
double c = np.cos(5) + sin(5);
Console.WriteLine(c);
dynamic a = np.array(new List<float> { 1, 2, 3 });
Console.WriteLine(a.dtype);
dynamic b = np.array(new List<float> { 6, 5, 4 });
Console.WriteLine(b.dtype);
Console.WriteLine(a * b);
Console.ReadKey();
}
}
my output is:
1.0
-0.9589242746631385
-0.675262089199912
object
object
NULL
why not the same as the readme output?
Metadata
Metadata
Assignees
Labels
No labels