File tree Expand file tree Collapse file tree
AngouriMath/Core/TreeAnalysis/Search Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,6 +113,6 @@ public Entity FindSubtree(Entity subtree)
113113 /// Finds out whether an expression contains at least one tensor
114114 /// </summary>
115115 /// <returns></returns>
116- internal bool IsTensoric ( ) => ContainsName ( "tensort" ) ;
116+ public bool IsTensoric ( ) => ContainsName ( "tensort" ) ;
117117 }
118118}
Original file line number Diff line number Diff line change @@ -253,9 +253,10 @@ Entity __c_min(Number val, int depth)
253253
254254 static void Main ( string [ ] _ )
255255 {
256- Entity expr = "x + 2 + (x + 2)" ;
257- Console . WriteLine ( expr ) ;
258-
256+ Entity a = MathS . Vector ( 2 , 3 , 4 ) ;
257+ Entity b = MathS . Vector ( 5 , 6 , 7 ) ;
258+ if ( a . IsTensoric ( ) && b . IsTensoric ( ) )
259+ Console . WriteLine ( MathS . ScalarProduct ( a as Tensor , b as Tensor ) ) ;
259260 /*
260261 Entity expr = "32 + x";
261262 var q = new List<Entity>();
You can’t perform that action at this time.
0 commit comments