Skip to main content
Tweeted twitter.com/StackMma/status/683703491643207680
edited title and added appropriate "vector"-tag
Source Link
Kuba
  • 137.7k
  • 13
  • 289
  • 751

How to avoid `Times[OverVector[F],0]`0 OverVector[F] to be evaluated as 0?

I am fairly new in MathematicaMathematica and I am trying to work with scalars and vectors. I decided to denote vectors using OverVector OverVector (as example, OverVector[F]stands for the force). Any scalar is denoted by a symbol.

When an expression has a multiplication between scalar and vector, the expected outcome should be nullVector, but MathematicaMathematica evaluated this as zero. (I have been using Notation package and Notation[OverVector[0]\[DoubleLongLeftRightArrow]nullVector],

Notation[OverVector[0]\[DoubleLongLeftRightArrow] nullVector]

nullVector stands for the zero vector)

How I can prevent MathematicaMathematica to evaluate Times[OverVector[F],0] as zero?

In other words. I need MathematicaMathematica evaluates the multiplication between vector and zero as the zero vector (nullVector) not as zero. How I can get this?

Thank you so much.

How to avoid `Times[OverVector[F],0]` to be evaluated as 0?

I am fairly new in Mathematica and I am trying to work with scalars and vectors. I decided to denote vectors using OverVector (as example, OverVector[F]stands for the force). Any scalar is denoted by a symbol.

When an expression has a multiplication between scalar and vector, the expected outcome should be nullVector, but Mathematica evaluated this as zero. (I have been using Notation package and Notation[OverVector[0]\[DoubleLongLeftRightArrow]nullVector], nullVector stands for the zero vector)

How I can prevent Mathematica to evaluate Times[OverVector[F],0] as zero?

In other words. I need Mathematica evaluates the multiplication between vector and zero as the zero vector (nullVector) not as zero. How I can get this?

Thank you so much.

How to avoid 0 OverVector[F] to be evaluated as 0?

I am fairly new in Mathematica and I am trying to work with scalars and vectors. I decided to denote vectors using OverVector (as example, OverVector[F]stands for the force). Any scalar is denoted by a symbol.

When an expression has a multiplication between scalar and vector, the expected outcome should be nullVector, but Mathematica evaluated this as zero. (I have been using Notation package and

Notation[OverVector[0]\[DoubleLongLeftRightArrow] nullVector]

nullVector stands for the zero vector)

How I can prevent Mathematica to evaluate Times[OverVector[F],0] as zero?

In other words. I need Mathematica evaluates the multiplication between vector and zero as the zero vector (nullVector) not as zero. How I can get this?

Thank you so much.

edited title and added appropriate "vector"-tag
Link

How to avoid Times[OverVector[F]`Times[OverVector[F],0]0]` to be evaluated as 0?

Source Link

How to avoid Times[OverVector[F],0] to be evaluated as 0?

I am fairly new in Mathematica and I am trying to work with scalars and vectors. I decided to denote vectors using OverVector (as example, OverVector[F]stands for the force). Any scalar is denoted by a symbol.

When an expression has a multiplication between scalar and vector, the expected outcome should be nullVector, but Mathematica evaluated this as zero. (I have been using Notation package and Notation[OverVector[0]\[DoubleLongLeftRightArrow]nullVector], nullVector stands for the zero vector)

How I can prevent Mathematica to evaluate Times[OverVector[F],0] as zero?

In other words. I need Mathematica evaluates the multiplication between vector and zero as the zero vector (nullVector) not as zero. How I can get this?

Thank you so much.