A linear algebra solve found zero solutions, weirdly [closed]

asked 2020-01-28 08:42:04 +0200

porton gravatar image

Let E, P, QA be points of a 3D space, let a*QAx+b*QAy+c*QAz==d ensures that QA is in a certain plane. Let |E P| and |E QA| be the same line. Why did my attempt to find QA found zero solutions?

#!/usr/bin/env python
# coding: utf-8

# In[1]:


var('a b c d')


# In[2]:


var('Ex Ey Ez')


# In[3]:


E=vector([Ex,Ey,Ez])


# In[4]:


var('Px Py Pz')


# In[5]:


P=vector([Px,Py,Pz])


# In[6]:


var('k QAx QAy QAz')


# In[7]:


QA=vector([QAx,QAy,QAz])


# In[14]:


solve([E-P==k*(E-QA), a*QAx+b*QAy+c*QAz==d], [k, QAx, QAy, QAz])
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Emmanuel Charpentier
close date 2020-01-30 11:50:32.795696

Comments

Ine't that a duplicate of your other question ?

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2020-01-28 09:34:30 +0200 )edit