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 8873589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:30:13+00:00 2026-06-14T18:30:13+00:00

I have 10,000 variables. for 100 of them, I do know the exact value.

  • 0

I have 10,000 variables. for 100 of them, I do know the exact value.

others are given like:

a = 0.x_1 * b + 0.y_2 * c+ 0.z_1 * d + (1 - 0.x_1 - 0.y_1 - 0.z_1) * a
b = 0.x_2 * c + 0.y_2 * d+ 0.z_2 * e + (1 - 0.x_2 - 0.y_2 - 0.z_2) * b

...

q = 0.x_10000 * p + 0.y_10000 * r+ 0.z_10000 * s + (1 - 0.x_10000 - 0.y_10000 - 0.z_10000) * q

yes I know exact value of 0.x_n, 0.y_n, 0.z_n … (the point of having 0. as a prefix means it is less than 1 while bigger than 0)

How can I solve this in python? I’d really appreciate if you can provide me some example, with simple equations like this :

x - y + 2z =  5
    y -  z = -1
         z =  3
  • 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-14T18:30:15+00:00Added an answer on June 14, 2026 at 6:30 pm

    (Using numpy) If we rewrite the system of linear equations

    x - y + 2z =  5
        y -  z = -1
             z =  3
    

    as the matrix equation

    A x = b
    

    with

    A = np.array([[ 1, -1,  2],
                  [ 0,  1, -1],
                  [ 0,  0,  1]])
    

    and

    b = np.array([5, -1, 3])
    

    then x can be found using np.linalg.solve:

    import numpy as np
    
    A = np.array([(1, -1, 2), (0, 1, -1), (0, 0, 1)])
    b = np.array([5, -1, 3])
    x = np.linalg.solve(A, b)
    

    yields

    print(x)
    # [ 1.  2.  3.]
    

    We can check that A x = b:

    print(np.dot(A,x))
    # [ 5. -1.  3.]
    
    assert np.allclose(np.dot(A,x), b)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want Pi to like 100,000,000 decimals/digits. And variables (well for me) say they
I have an ad network script like the following http://cdn.domain.com/ad.php?variables=etc We have about 10,000
I have like 12,000 rows in a DataTable and it is timing out when
im planning to create a movie file that might have over 16,000 frames?i know
In R, I have 600,000 categorical variables, each of which is classified as "0",
So, lets say I have 100,000 float arrays with 100 elements each. I need
I have 100,000+ strings matched with a variable number of bytes 10-300. I will
I have a program I am writing that lists 100,000 prime numbers. It works
Suppose table 1 Have 1,000,000 rows. In table 2 there are 50,000 rows INPUT
So lets say I have 10,000 points in A and 10,000 points in B

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.