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

  • Home
  • SEARCH
  • 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 9138993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:19:46+00:00 2026-06-17T09:19:46+00:00

I am using matlab to compute the following problem: A , B are two

  • 0

I am using matlab to compute the following problem:

A, B are two m by n orthogonal matrices, A'*A = I and B'*B = I where I is the identity matrix. And m is much bigger than n. I am computing C = (2B*B'-I)*A, which is also a orthogonal matrix.

But in matlab, the precision of number leads to the following issue:

max(max(abs(A'*A-I))) = e0 > 0
max(max(abs(B'*B-I))) = e0 > 0

And the computed C has max(max(abs(C'*C-I))) = e1 > e0.

If I repeat the above process by computing D = (2C*C'-I)*B, this error bound lift up for D, with more and more such kind of iterations, this error explodes.

Is there a way to compute without increasing this error bound?

Thanks!

  • 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-17T09:19:46+00:00Added an answer on June 17, 2026 at 9:19 am

    As a general rule, the more computations and transformations your perform, the more you have to start worrying about floating point error.

    To mitigate the effects, there are a couple of possibilities:

    1) Use software like Maple or Mathematica that support exact arithmetic, which will mostly eliminate the problem at the cost of greater computational burden. My understanding is that Matlab does not support exact arithmetic (but I could be wrong on this…)

    2) Use a higher precision than Double to mitigate the floating point error. For example, the FEX submission Multiple Precision Toolbox for MATLAB claims to support arbitrarily large precision formats. I’ve never used it myself though, so I can’t comment on how well it works.

    3) Depending on the relative magnitudes of the numbers in your matrices, there may be some numerical tricks or transformations that you can exploit to reduce the floating point error. This is a big topic, but in general the idea is to try and scale your problem so that numbers are all as close to each other in order of magnitude as possible.

    There may be some other possibilities that I’m not aware of. I’m certainly no expert in this area. I’ll be interested to see what other respondents suggest.

    Oh, one other thing, I just stumbled upon a closely related SO question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to compute a rather ugly integral using MATLAB. What I'm having problem
In Matlab, I frequently compute power spectra using Welch's method ( pwelch ), which
I am new to OpenMP. I have the following code which compiles fine using
I'm trying to find a factor using matlab that requires me to compute the
I wrote a code in matlab to compute an integral using Gauss-Chebyshev quadrature ,
In the figure below the goal is to compute the homography matrix H which
When using MATLAB's lsqnonlin function, I am trying to give a user-defined Jacobian matrix,
I'm using k-means with matlab on a big and sparse matrix ~(1000000x1000). Now here
I am having a problem with TriScatteredInterp in MatLab. I am using a set
I am using matlab NE builder to compile a dll file which I call

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.