Questions tagged [equation]

A statement that the values of two expressions are equal indicated by the sign = .

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

How to decrease the font size when using the $$ environment in Rmarkdown

I am working in Rmarkdown and I want to have a pdf output. My fontsize is set to 11pt. I want to write the following sentence: If there is gamble to win G or lose G with a probability of $\frac{1}{2}$,...
Marie's user avatar
  • 1
0 votes
1 answer
30 views

Sympy ValueError: First variable cannot be a number (in a function)

Here is a simple code for Newton equation solving meant to find complex roots. The code meant to work like this: Importing Libraries: The code imports the sympy library to handle symbolic mathematics. ...
dodo's user avatar
  • 101
0 votes
1 answer
56 views

solve a mathematical expression about a specific unknown parameter with python

I have this equation and want to solve it about t with Python, numpy. First of all I should say that in this equation: <<h r ai hint T*=1000 tau=t/t*>> is known. Before I ask the question ...
Abbas Zandi's user avatar
1 vote
2 answers
97 views

solving two equations with two variables. one of the equations is nonlinear

I have a system of two equations: (1+x)-(x-1)*y=1.706873 ((x-1)*(x-2)*y^2)-3*(x^2-1)*y+(x+1)*(2*x+1) = 4.039665 and I'd like to find the value of x and y. I tried to find them using this code: ...
fbah's user avatar
  • 11
-1 votes
0 answers
21 views

Extracting Equations From pptx Presentations [closed]

I'd like to use python-pptx to extract text and equations (written by using office equation tools) from a pptx presentation - for pasting into a word file to transform all the equations in latex. Any ...
Filippo Petroni's user avatar
2 votes
1 answer
105 views

How to find quadratic equation roots with gradient descent?

How to find quadratic equation roots with gradient descent? I wrote a code to find argmin of given equation but I can not understand how to find exactly roots. # x**2 + 5 * x + 6 = 0 roots: -3, -2 ...
nameisnoname's user avatar
0 votes
0 answers
37 views

How to maximize a multi-variable equation?

I have an equation like eq1 --> a1*X1 + a2*X2 + .... an*Xn + b1*X1*X2 + b2*X2*X3 + ... bn-1Xn-1*Xn + c that I want to maximize and/or minimize it so that the other equation eq2 --> d1*X1 + d2*...
Kak Milad's user avatar
0 votes
0 answers
21 views

Implicit equation plotting

I’m not a python expert, just a beginner, I would like to know how I could code and plot the equation shown here by using the implicit equation option??. This is my attempt but not sure how to plot it....
Cesarengineer's user avatar
-4 votes
0 answers
44 views

Is there any way to code and plot this equation?

I’m not a python expert, just a beginner, I would like to know how I could code and plot this equation as shown here. This is my attempt but not sure how to plot it. Any help will be appreciated. ...
Cesarengineer's user avatar
0 votes
0 answers
16 views

How to solve inconsistent equation dimensions in Mathematica

Using the heat equation and Neumann Values in mathematica I've been trying to visualise heat diversions in 2D. The code used is here : Needs["NDSolveFEM"] Clear["Global`*"] (Define ...
Hezux's user avatar
  • 1
0 votes
0 answers
40 views

How to draw this parametic equation in java

How to draw this parametic equation in java: I have tried this public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2 = (Graphics2D) g; g2.translate(...
abdullah alasbahi's user avatar
0 votes
0 answers
35 views

LaTeX equation does not render as in-line math with Jekyll and MathJax

I have some in-line math (i.e. $ ... $) which does not render on a GitHub page created with Jekyll and MathJax. I have already tried a thousand of different notations/formulations/combinations and can'...
Joram Soch's user avatar
0 votes
1 answer
107 views

1D Heat Induction Equation in Python

I'm new to Python and I'm trying to solve the analytical solution of the head induction equation in Python. I wrote a code but it doesn't work as I want and I cannot fix it. Here you can find the ...
Yovan Bach's user avatar
0 votes
1 answer
75 views

MathJax does not allow multi-row in-line math on GitHub Pages

This is my mathjax.html: <script type="text/x-mathjax-config"> MathJax.Hub.Config({ TeX: { equationNumbers: { autoNumber: "all" }, tagSide: "right"...
Joram Soch's user avatar
0 votes
0 answers
36 views

HackerEarth - Codemonk - Circular Equation Problem

Hi folks I am solving a problem Circular Equation in Python 3.8.10 language and this problem is on HackerEarth Platform under Codemonk/Number Theory Part I* section and below I have attached exact ...
Mohammad Shafqat Siddiqui's user avatar
0 votes
0 answers
43 views

How can I use Sin⁻¹ in C# equations? [duplicate]

I wrote a equation to calculate a variable's value in c#, but it has sin⁻¹ in it and I can't find anything about how to write this function in c#. Does anyone know how to do this? I tried finding the ...
Duskkitte's user avatar
0 votes
0 answers
22 views

How can I solve this PDE kinetics equation with Symbolic Toolbox in Matlab?

I want to solve a PDE from a kinetics equation as depicted next: Main equation which kinetic consumption equation of gold I made the following code ,but dont know what i have to change to make it run....
Raul Sebastian Rivera Martinez's user avatar
0 votes
1 answer
44 views

How to find all points in a given 3D shape

Consider a 3D space, we only study integer points . And then we are given 3 basis vectors (non-orthogonal, of cause) by which we can obtain a 3D crooked cubic (how to call that in English?). The ...
hengyue li's user avatar
-2 votes
1 answer
71 views

How to solve a polynomial equation for one unknown in python?

I have been trying to solve the following equation for R1 in python using scipy, but I get the error: result = root_scalar(equation, bracket=[0, 8]) Traceback (most recent call last): Cell In[1638],...
diri's user avatar
  • 3
2 votes
2 answers
76 views

How to properly print Standard form of equation in Python

When writing Ax + By + C = 0, my program keeps 1's next to x and y, not removing Ax By or C when there is a 0. I was hoping there was another way to print this correctly instead of making a bunch of ...
HarmanT13's user avatar
0 votes
1 answer
20 views

Lyapunov Equation for two optical and two mechanical modes

I am trying to solve lyapunov equation for two opticaL and two mechanical modes, for which i have 8X8 matrix. I defined function for coupling strength G but the code is giving local bound error. ...
Kashaf Toheed's user avatar
0 votes
0 answers
101 views

Minecraft and "World edit" "generate" command. Formatting for equations and how to use

I am aware that you can make a helix and many other shapes in Minecraft using an equation like: //g -hc diamond_block rotate(x,z,pi*y/50); z/=2; x+=15; x^2+z^2<8^2 However I want to try and create ...
CptFishPants's user avatar
0 votes
0 answers
42 views

Is there a way to use MathJax in Rust documentation?

If I'm writing an mdBook, I can put: [output.html] mathjax-support = true in my book.toml file. Since Cargo's documentation uses mdBoook, I'd expect there's a way to add mathjax-support in a Cargo....
Chad's user avatar
  • 1,472
0 votes
2 answers
49 views

Change the type setting of sympy output functions that contain the Heaviside step function from Theta(t) to u(t)

When running Jupyter notebooks, or co-lab notebooks, and a function is returned that includes a step function, it displays the step function as Theta(t) and not u(t). While Theta(t) is common, when ...
David Parent's user avatar
0 votes
1 answer
32 views

Mapping from text to value in Google sheet equation

I have a Google Spreadsheet with two sheets in it. In one of them I have a table representing a mapping from text to a number like this: Text Factor Yearly 1.0 Quarterly 4.0 Monthly 12.0 Weekly ...
Frank's user avatar
  • 621
0 votes
1 answer
47 views

algebraic operation with normal random values in Modelica

I've got such code in Modelica: model BioPowerSetup Modelica.Blocks.Interfaces.RealOutput BioPowerOutput; parameter Real alpha=0.05; parameter Real mu1=7/25; Real Nmax=25; parameter Real D=0....
Daniil Udalov's user avatar
-3 votes
1 answer
71 views

Equation solving python

I want to find x in x=[(b+x)*c/d]-a or (a+x)/(b+x)=c/d where a,b,c,d are inputs from the user.(im a beginner and i just started learning python but i dont know how to solve and equation with it) `a,b,...
xky18's user avatar
  • 5
0 votes
1 answer
37 views

How do I insert an inline shape into a Manim Mathtex Mobject?

In Manim I'm using MathTex to display equations. I would like to allow variables in the equation to be shapes that I have constructed with other Manim functions. And not just a Circle or Square but ...
Cortado-J's user avatar
  • 2,067
0 votes
1 answer
37 views

How to extract all coefficients for a particular variable

I have done some calculations in sympy, and the result is below: (I use [expr].coeff(u1) method) X1*X2*(u1 - u2 + u3 - u4)/(4*a*b) + X1*(-u1 + u2 + u3 - u4)/(4*a) + X2*(-u1 - u2 + u3 + u4)/(4*b) + u1/...
Никита Петров's user avatar
0 votes
0 answers
20 views

Common Math NoBracketingException on solving the equation

I have a class I created on yield to maturity calculation and I use BrentSolver() in common math to solve equations, but I got an exception when I tried to change my code. double lowerBound = 0.000; ...
whyt's user avatar
  • 1
0 votes
0 answers
17 views

Solve differential equation and showed output using Handcalcs

` import sympy as sp # Define the symbolic variables x = sp.symbols('x') y = sp.Function('y')(x) # Define the ODE ode = sp.Eq(y.diff(x), x) # Solve the ODE solution = sp.dsolve(ode, y) # Display ...
tasneem alam's user avatar
0 votes
1 answer
40 views

One-Step Equations

what is -2.4=z/-4 The division sign is meant to be a fraction. I tryed this equation on my calculator and I just cannot find the answer and this assignment is due tomorrow. Please someone help me. I ...
MCKENZIE PHILLIPS's user avatar
0 votes
0 answers
34 views

Computing an equation-based variable in SPSS with Euler's number

I'm currently working with a large population dataset in SPSS, and at this stage of my analysis I would like to predict how many people are at risk of having nonalcoholic fatty liver disease (NAFLD). ...
WelshBOCS's user avatar
-1 votes
1 answer
40 views

How to find roots for the polynomial given below using Matlab / Mathematica / Python?

x^4 + 4bx^3 + (a^2 + 4b^2 + l^2)x^2 + 2(b(a^2+l^2)-m*l^2)x + a^2l^2 = 0 For some specific values of the unknown coefficients we can get the root. But how could we get the roots of the equation for ...
Aditya Das's user avatar
2 votes
1 answer
136 views

How to format an equation into a C# Form using Math.Net? [duplicate]

I am trying to find a way to format an equation in C#. The steps and result I am trying to achieve are something as follows: First, declare a simple string equation in code like string equation = &...
Alex Schmidt's user avatar
0 votes
1 answer
60 views

What methods can be used to format an equation into a C# Form? [closed]

Let's say I made a simple string like: string str = "a/(b^2)". I want this expression to be rendered on a form in a convenient format instead of plain text. What methods can be used to ...
Alex Schmidt's user avatar
0 votes
1 answer
32 views

Show sqrt(y) ~ assign(sqrt(x)) relationship with `stat_poly_eq`, `stat_fit_tb` or `stat_fit_tidy`

require(utils) x = runif(n = 10, min = 0.2, max = 1) y = rnorm(n = 10, mean = 2.5, sd = .5) df = expand.grid(x = x, y = y) I used the code below to plot the sqrt(y) ~ assign(sqrt(x)) ...
hnguyen's user avatar
  • 772
0 votes
0 answers
80 views

How to use moodle with a locally installed copy of mathjax

I am having a hardtime getting moodle to work with a locally installed mathjax instead of the mathjax cdn. I followed instructions from https://github.com/maths/moodle-qtype_stack/blob/master/doc/en/...
Jovison Micah's user avatar
0 votes
0 answers
67 views

How to use zvode to solve differential equations in Python?

I'm solving a differential equation in Python that takes complex initial values and generates complex values as results as well. I'm not entirely sure, but I think it's a stiff differential equation. ...
Projetos Programação's user avatar
0 votes
0 answers
19 views

How does SymPy respond when solving for many variables?

I am trying to produce a counterexample for a system of equations/inequalities. Essentially I want to find an input (which is represented by an array of variables called A) that cannot produce a valid ...
kyra's user avatar
  • 1
0 votes
2 answers
84 views

Fsolve with multiple vector equations

I am trying to solve an equation similar to the simplified example x / x.sum - b = 0 where x is an n-dimensional vector. Since one can multiply x with any constant without changing the equation, the ...
eigenvector's user avatar
0 votes
0 answers
34 views

Find the direction in which to look for a solution

Good time dear forum participants! So, I just need an advice for direction, in which to look for a solution. For example, terminology in mathematics, or examples of similar problems. I have 3 lists of ...
Ingenieur's user avatar
0 votes
0 answers
42 views

Is there any way to solve this equation in r?

Suppose I have this equation: prev = P12/(P11 + P12) with P11 <- exp(-(sigma+alpha_h)*t-(beta1_dot_h/beta2_h)*(exp(beta2_h*(x+t))-exp(beta2_h*x))) for P12 is a little bit long equation so I ...
Farrelyto Theodorus's user avatar
0 votes
1 answer
56 views

Solving an equation in r

Suppose I have the following equation: sigmagm <- function(sigma){ (-sigma*t) - (alpha_h*t) - ((beta1_dot_h/beta2_h) * (exp(beta2_h*(x+t)) - exp(beta2_h*x))) - ((beta1_dot_h/beta2_h) * exp(...
Farrelyto Theodorus's user avatar
-2 votes
2 answers
62 views

Find all possible sets of variables a, b, c which fits these two equations

Problem Statement -: Suppose "arr" is an array of 101 elements with every value ranging from 1 to 256. Now, we need to select 3 different values a, b, c from arr (basically no repetition ...
Vineet Mangal's user avatar
1 vote
0 answers
133 views

problem plotting linear regression equation with ggpmisc in R studio

I am trying to plot linear regression and display corresponding equations and R squared. I used the #following code: ch= factor (rep(c("c1", "c2", "c3", "c4"),3,...
s_pgn's user avatar
  • 21
0 votes
0 answers
33 views

How to know the error associated with the result given by sp.solve?

I am solving a system of equations numerically and analytically. The analytical result, which I found in Mathematica, gives the correct result. The numerical result, found with jupyter through Sympy's ...
Projetos Programação's user avatar
0 votes
1 answer
93 views

Sympy system of differential equations

Problem I'm making a symbolic solver for mechanical links previous question for details Right now I can get sympy.solve to solve big systems of linear equations, but I'm having an hard time making the ...
05032 Mendicant Bias's user avatar
1 vote
1 answer
96 views

Quadratic equation in Python

here is my code. Can anybody help to solve the problem? In the code below everything what I made but it doesn't work. def read_equation(textfile: str) -> str: with open(textfile, 'r') ...
la_felice's user avatar
-1 votes
1 answer
51 views

How can you create an 'if' statement using an integer input and use an equation to generate the answer?

My assignment is as follows: This week we will implement “if statements” in a program by modifying our program from week 2. In week 2, we calculated the total cost of fiber cable installation by ...
Kyle Hughes's user avatar

1
2 3 4 5
39