Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8528687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:51:31+00:00 2026-06-11T08:51:31+00:00

I am a beginner with Numpy/Matplotlib (and scientific python) and I find that very

  • 0

I am a beginner with Numpy/Matplotlib (and scientific python) and I find that very easy things are relatively complicated to do because they have to be done by hand. (like without having this awesome math environment)

I thought that at least there would be a possibility for example to easy get the angle of two intersecting lines.

I want to do the following. I have those three points:

 (q)  |
  \   |
   \  |
    \a|
     \|
     (p)
      |
      |
      |
     (o)
  1. All what I want to do is to calculate the angle a.
  2. Also later I want to get a point z which is relative to the origin (0,0) with the distance from p to q and the angle a.

The first thing is easy with math, first I calculate two vectors a1 and a2.
Then I calculate:

a = arccos( ( a1 * a2 ) / (|a1| * |a2|) )

and so on…

But how the hell do I do this in matplotlib?

Is there a way to “just” give the three points and it does everything?
I don’t really see a advantage of doing this whole stuff on my own with having an math environment.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:51:32+00:00Added an answer on June 11, 2026 at 8:51 am

    Numpy provides the same functionality math provides but working on both numbers and arrays. So you would do :

    import numpy as np
    
    a = np.arccos((a1 * a2) / (np.abs(a1) * np.abs(a2)))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

beginner to python here. I have 2 nested lists that I want to merge:
Beginner level question Scenario: Have simple string cocantation tool, that I might expand later
Python beginner here, I have a list of lists and want to refer to
Beginner programmer here....hope it makes sense :) I have created a console app that
Total beginner with PHP: I have an form based on table data that the
Python beginner here. I am using the matplotlib library to make graphs from tab
Beginner. I have a tab control that has content loaded dynamically via links. These
I am a python beginner and I am trying to average two NumPy 2D
Beginner programmer here. So bear with me. I have a simple python program. print
Python beginner, I have become familiar with reading through a file and doing basic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.