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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:29:57+00:00 2026-05-27T07:29:57+00:00

for theta=1:10 x_3 = cos(theta); syms x; x_2 = ‘x_3 – cos(x+theta)’; a =

  • 0
for theta=1:10
  x_3 = cos(theta);

  syms x;
  x_2 = 'x_3 - cos(x+theta)';

  a = solve(x_2,x)
end

When I run this code, the solutions for a include x_3 and theta instead of substituting them with the values defined above. How can I solve this using the actual values of x_3 and theta?

  • 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-05-27T07:29:57+00:00Added an answer on May 27, 2026 at 7:29 am

    It is a problem of mixing syms and strings?

    Try:

    syms x;
    for theta = 1:10
        x_3 = cos(theta);
        x_2 = x_3 - cos(x+theta);
        a = solve(x_2,x)
    end
    

    or

    for theta = 1:10
        x_3 = cos(theta);
        x_2 = 'x_3 - cos(x+theta)';
        a = solve(x_2,'x')
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here are two statements from my Mathematica program. Print[ExpandAll[Chop[Integrate[Resi*Cos[7*1*\[Theta]]*Sin[(1*Pi*x)/L], {\[Theta], 0,2*Pi},{x,0, L}], 10^-6]]]; This
In the below piece of code, theta x and y are varying smoothly for
So I defined.. #define RADIAN(x) x*3.14159265f/180.0f and then used it like this: RADIAN(theta-90) My
syms x1 x2 x3 theta gamma beta rho miu sigma; f=-(exp(i*x1)-1)*Ei(1, x2)/(i*x1); Undefined function
I have written a function below: void trans(double x,double y,double theta,double m,double n) {
Started learning algorithms. I understand how to find theta-notation from a 'regular recurrence' like
I'm trying to annotate a polar plot with data tips labelled with 'R:...,Theta:...' where
I have defined the following two functions test <- function(t) { return( (0.5*eta^2/theta)*(1-exp(-2*theta*t)) )
I have the following code, but I can't find the bug. It seems to
for a school project I need to find theta and phi for a spherical

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.