# Calculate scalar H number divided by N vector?

**URL:** <https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201>\
**Category:** Questions\
**Tags:** algebra, calculus, equation-solving, numerical-computation, symbolic-computations\
**Created:** [January 5, 2020, 11:47pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201 "2020-01-05T23:47:27Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![merveacar00](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@merveacar00](https://community.wolfram.com/u/merveacar00)\
**Post date:** [January 5, 2020, 11:47pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/1 "2020-01-05T23:47:27Z")

</div>

Hello. I am trying to calculate the vector X as shown in the attached file. But I don’t know what commands to use. Can you give me information about this?

[Untitled-5.nb](https://community.wolfram.com/uploads/short-url/bzpQXGyYdecE4wETij4k4xDZm5h.nb) (15.3 KB)

---

<div class="post-metadata">

**Author:** ![hdolhaine](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hdolhaine/32/35924_2.png) [@hdolhaine](https://community.wolfram.com/u/hdolhaine)\
**Post date:** [January 7, 2020, 10:29am UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/2 "2020-01-07T10:29:41Z")

</div>

1. N is a Mathematica-Symbol. Look it up in the Help-Section. You shouldn’t use N, try vN or so.

2. Your “N” clearly is a vector of dimension 3. But your H is a scalar. Tell me , why should

scalar / vector

an operation that is - at least - not well (if not far from ) defined be a vector? Did you mean N / H ?

---

<div class="post-metadata">

**Author:** ![ghorbani](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@ghorbani](https://community.wolfram.com/u/ghorbani)\
**Post date:** [January 7, 2020, 7:56pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/3 "2020-01-07T19:56:52Z")

</div>

Dear Hans,

May I have your email address, please?

---

<div class="post-metadata">

**Author:** ![hdolhaine](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hdolhaine/32/35924_2.png) [@hdolhaine](https://community.wolfram.com/u/hdolhaine)\
**Post date:** [January 7, 2020, 8:01pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/4 "2020-01-07T20:01:56Z")

</div>

Yes:

[h.dolhaine@gmx.de](mailto:h.dolhaine@gmx.de)

---

<div class="post-metadata">

**Author:** ![merveacar00](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@merveacar00](https://community.wolfram.com/u/merveacar00)\
**Post date:** [January 7, 2020, 9:52pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/5 "2020-01-07T21:52:14Z")

</div>

First of all, thank you for your reply. There are vectors N and X such that \<N, X\> = H. Actually, I’m trying to find the possible values of the X vector. How do I calculate with Mathematica?

---

<div class="post-metadata">

**Author:** ![hdolhaine](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hdolhaine/32/35924_2.png) [@hdolhaine](https://community.wolfram.com/u/hdolhaine)\
**Post date:** [January 7, 2020, 10:32pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/6 "2020-01-07T22:32:40Z")

</div>

I think you mean this

( \< vecN , vecX \> = H = prod in this code )

```
vecN = {a, b, c};
vecX = {x1, x2, x3};
scalar = s;
prod = vecN.vecX;     
lsg=Solve[prod == scalar, x1] // Flatten

```

Then x1 is given as function of x2 and x3. Chose any x2 and x3, calculate x1 and this vector gives your condition.

```
vecX1 = vecX /. lsg
vecN.vecX1

```

---

<div class="post-metadata">

**Author:** ![merveacar00](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@merveacar00](https://community.wolfram.com/u/merveacar00)\
**Post date:** [January 7, 2020, 11:12pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/7 "2020-01-07T23:12:25Z")

</div>

These are exactly the codes I’m looking for. Thank you very much for your help.

---

<div class="post-metadata">

**Author:** ![clarkembers](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@clarkembers](https://community.wolfram.com/u/clarkembers)\
**Post date:** [January 8, 2020, 7:51am UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/8 "2020-01-08T07:51:30Z")

</div>

Can we divide two vectors? Can we divide [Zantrex Black](https://ipsnews.net/business/2021/09/03/zantrex-black-reviews-does-this-weight-loss-pill-really-works/) two vector quantities? For eg., Pressure( a scalar) equals force (a vector) divided by area (a vector).

---

<div class="post-metadata">

**Author:** ![hdolhaine](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hdolhaine/32/35924_2.png) [@hdolhaine](https://community.wolfram.com/u/hdolhaine)\
**Post date:** [January 8, 2020, 11:34am UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/9 "2020-01-08T11:34:14Z")

</div>

No. There is not an operation like vector / vector.  
By the way, pressure in general is NOT a scalar, but a Tensor:

```
press = {
   {pxx, pxy, pxz},
   {pyx, pyy, pyz},
   {pzx, pzy, pzz}
   };

```

and the force experienced by a surface ( given by a vector surf = { sx,sy, sz } is given by

```
force = press.surf

```

Often the off-diagonal elements of press are 0 (this is most likely not the case in vsicous fluids) , and if in addition the diagonal elements are equal = p ( an isotropic medium) the force points in the direction of surf. Then you can write

```
p = Norm[force] / Norm[surf]  

press = {
   {p, 0, 0},
   {0, p, 0},
   {0, 0, p}
   };
f1 = press.{1, 1, 1}
f2 = press.{2, 3, 4}
Norm[f1]/Norm[{1, 1, 1}]
Norm[f2]/Norm[{2, 3, 4}]

```

---

<div class="post-metadata">

**Author:** ![merveacar00](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@merveacar00](https://community.wolfram.com/u/merveacar00)\
**Post date:** [February 8, 2020, 6:46pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/10 "2020-02-08T18:46:07Z")

</div>

[Gradient\_OP\_f\_CP\_.nb](https://community.wolfram.com/uploads/short-url/6jU81HVR3THk8whjSsTBOa7HN5v.nb) (21.1 KB)

---

<div class="post-metadata">

**Author:** ![merveacar00](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@merveacar00](https://community.wolfram.com/u/merveacar00)\
**Post date:** [March 21, 2020, 8:09pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/11 "2020-03-21T20:09:50Z")

</div>

Hello. Although I selected the s value differently in these two files, the same result came out. I couldn’t understand the reason. I wonder if the results I get are correct. Where do you think I might have made a mistake?

[s=+1…nb|attachment](https://community.wolfram.com/uploads/short-url/2tvYoHPRimVUqaO9GUZSSnYGcPy.nb) (68.9 KB)  
[s=-1…nb|attachment](https://community.wolfram.com/uploads/short-url/pT1ddybfet69hqeYrjhBEHtE7Ws.nb) (68.9 KB)

---

<div class="post-metadata">

**Author:** ![hdolhaine](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hdolhaine/32/35924_2.png) [@hdolhaine](https://community.wolfram.com/u/hdolhaine)\
**Post date:** [March 22, 2020, 11:36pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/12 "2020-03-22T23:36:45Z")

</div>

Hmmm. These notebooks don’t run on my system. What exactly is your question?

---

<div class="post-metadata">

**Author:** ![merveacar00](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@merveacar00](https://community.wolfram.com/u/merveacar00)\
**Post date:** [March 23, 2020, 3:30pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/13 "2020-03-23T15:30:27Z")

</div>

In the equation \<N, X\> = H, I try to find the vector X. When I change the scalar value “H” here, the result (the vector X) also needs to change. But Mathematica gives the same result. Its stuck on my mind. I wonder where I made a mistake.

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/9285dfaf-396a-454c-9946-349b64091edd)

◔

---

<div class="post-metadata">

**Author:** ![merveacar00](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@merveacar00](https://community.wolfram.com/u/merveacar00)\
**Post date:** [March 23, 2020, 3:56pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/14 "2020-03-23T15:56:18Z")

</div>

In the equation \<N, X\> = H, I try to find the vector X. When I change the scalar value “H” here, the result (the vector X) also needs to change. But Mathematica gives the same result. Its stuck on my mind. I wonder where I made a mistake.

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/9285dfaf-396a-454c-9946-349b64091edd)

◔

---

<div class="post-metadata">

**Author:** ![hdolhaine](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hdolhaine/32/35924_2.png) [@hdolhaine](https://community.wolfram.com/u/hdolhaine)\
**Post date:** [March 23, 2020, 10:10pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/15 "2020-03-23T22:10:14Z")

</div>

Where is your H?

And you write

```
s = 1/4 ( Abs[Sin[ b s] +......

```

So s appears on both sides of the = sign, I wonder that you don’t get error messages.

---

<div class="post-metadata">

**Author:** ![hdolhaine](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hdolhaine/32/35924_2.png) [@hdolhaine](https://community.wolfram.com/u/hdolhaine)\
**Post date:** [March 23, 2020, 10:13pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/16 "2020-03-23T22:13:42Z")

</div>

What about this?

[s=+1… \_OP\_1\_CP\_.nb|attachment](https://community.wolfram.com/uploads/short-url/gGqnsc5LxxAUk58tAi5vbxpYWyN.nb) (85.3 KB)

---

<div class="post-metadata">

**Author:** ![merveacar00](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@merveacar00](https://community.wolfram.com/u/merveacar00)\
**Post date:** [March 24, 2020, 11:02pm UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/17 "2020-03-24T23:02:03Z")

</div>

Actually, what I want to ask is exactly like this: Here I have changed the sign at the end of the parenthesis (shown in green). I thought the result would also change. But it has not changed. I couldn’t understand why.

 ![- and +.png](https://global.discourse-cdn.com/wolfram/original/2X/a/a0639a0f904b803def98735d4c53f906c37acbc7.png)  
[s=+1…nb|attachment](https://community.wolfram.com/uploads/short-url/gl85K8LcD1O2TJhlsQrmJjXNX0o.nb) (61.5 KB)  
[s=-1…nb|attachment](https://community.wolfram.com/uploads/short-url/xhXvta3JwE85Mk05NBAfyN9LE5U.nb) (61.8 KB)

---

<div class="post-metadata">

**Author:** ![hdolhaine](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hdolhaine/32/35924_2.png) [@hdolhaine](https://community.wolfram.com/u/hdolhaine)\
**Post date:** [March 25, 2020, 6:16am UTC](https://community.wolfram.com/t/calculate-scalar-h-number-divided-by-n-vector/15201/18 "2020-03-25T06:16:15Z")

</div>

Dear Meryem,

I must admit I don’t understand exactly what you mean.

As your expressions in fact aren’t simple I decided to do some numerical calculations (see notebook). For this purpose I defined an arbitrary function gg to be inserted for g later on.

With several calculations I obtained different solutions for x1 using + or - in H.

Note: the two different solution - vectors differ only in the x1-component by a constant.

[s=new+1…nb|attachment](https://community.wolfram.com/uploads/short-url/cXTm7ccBmpCGmcQBGHW8OpKizXg.nb) (85.9 KB)
