Questions tagged [equations]

194 questions
0
votes
1 answer

Difference equations with initial and final condition in matlab

Consider the following equations: enter image description here x_1(k+1) = 2x_1(k) + 0.2x_2(k) x_2(k+1) = 2x_2(k) - 0.4λ_2(k) λ_1(k) = 0.1x_1(k) + 2λ_1(k+1) λ_2(k) = 0.2λ_1(k+1) + 2λ_2 k+1) k=0, 1, 2… 10 x_1(0)=2 x_2(0)=0 …
S.Rostami
  • 9
  • 2
0
votes
0 answers

Finding values of two variables with two equations in Python

I am simply trying to find the values of the two variables X and Y using the following system of two equations, in Python: z = arccos [(sin(a) * sin(X)) + (cos(a) * cos(X) * cos(Y - b))] Az = arctan2[(cos(X) * sin(Y - b)) , (cos(a) * sin(X)) -…
0
votes
2 answers

How to past the text without formatting loss in MathType editor

I would like to convert the 'text to MathType' in word document. For example I have already keyed the text "A2 + B2 = C2", instead of keyed in MathType editor. So I have tried to copy and paste that text into MathType editor, while doing so the…
Prabhu M
  • 21
  • 5
0
votes
1 answer

Solving set of exponential equations in python

Trying to solve a set of exponential equations but keep getting errors saying that "can't convert float" or "float is not callable" You may run the code, just replace the variables with any values you'd like. from sympy.abc import x, y import numpy…
Salchem
  • 118
  • 1
  • 2
  • 11
0
votes
0 answers

How to execute an equation with variables from 3 lists and make a list of results?

from __future__ import division import numpy as np import math from math import * import random a_1 = -3.54 a_2 = 0.83 b_1 = 9601.0 b_2 = -2366.0 c_1 = 196.0 c_2 = 32.0 mpf = 0.6 #maximum packing…
Rob C.
  • 11
  • 1
0
votes
2 answers

Solve a system of many algebraic equations in Matlab

I am trying to solve a system of nine algebraic equations in MATLAB of the following form: eq1 = x1 * 3.12091E-17 * 10.96 * exp(x2 + x3 * 4.96) - 1765; eq2 = x1 * 3.12091E-17 * 5.08 * exp(x2 + x3 * 5.09) - 720; eq3 = x1 * 3.12091E-17 * 57.2 *…
I.M.
  • 9
  • 2
0
votes
1 answer

VBA (word) Writing a equation in a table

So I am working on a word template which needs to automatically write specific data in specific places of the document. Now I Need to write and mathematical equation in a cell (for example: 〖∆U=α〗_(steel )∙ ∆T ∙ ∆L_vp) I know I need to replace…
Fyer-Zero
  • 123
  • 2
  • 11
0
votes
1 answer

Basic math functions in VB.net

So i am currently in process of adding a basic calculator that allows the user to define 2 variables and then press a button that puts the variables into a basic math equation and presents the result but i think i have gone about it completely…
0
votes
1 answer

Summation of Equation Program

So basically I'm trying to make a program that will do equation for every value of nStart to nEnd. This is my code so far def summation(nStart , nEnd , eqn): sum = 0 while nStart - 1 != nEnd: sum = sum + eqn nStart += 1 …
Joy
  • 7
  • 3
0
votes
0 answers

locate the 3D point given the distance via python

I wanna locate a 3D point, given the distance between three base point. I tried spicy.optimize.fslove, but it seems that the result is not satisfying. point1 = [0., 0., 0.] point2 = [1., 0., 0.] point3 = [0., 1., 0.] def solveLocate(x): xp =…
KeyYD
  • 1
  • 1
0
votes
3 answers

php - Is it possible to use result of equation stored in a variable directly?

For example $var = '10/2'; Is there a way for me to output the value 5 from that easily? So something like this: $foo = ($var) + 5; I want $foo to have a value of 10? Currently, the best way I know is to explode $var and then divide $var[0] by…
T. Short
  • 3,481
  • 14
  • 30
0
votes
1 answer

How to solve differential equation in matlab

How can I show that y(t)=Yo/Yo+(1-Yo)e^-at is the solution of the differential equation dy/dt=ay(1-y) using MATLAB. What function should I use?
Rachel
  • 43
  • 1
  • 8
0
votes
3 answers

equations with 3 numbers not displaying on HTML

I'm writing a math problem generator, but when I run it only equations with 2 numbers are displayed, anything more and it says "undefined" and refuses to show the answer. Here is the entire code(please note it is incomplete right now) var type =…
0
votes
1 answer

Parentheses under equations with two lines of text Rmarkdown

I would like to write in a Rmarkdown document an equation with some explanations below it. I have found the functions \underbrace{} coupled with _\textrm{}. \underbrace{X}_\textrm{Text1 for X} = \underbrace{Y}_\textrm{Text1 for Y} This is working…
Robin.N.
  • 99
  • 8
0
votes
1 answer

autocorrect the whole math equations within ms-word

I have written a plain text in notepad editor. This text contains some embedded mathematical formulas like \sumw_if(x_i) which refers to \sumw_if(x_i) or \alpha^2 + \beta^2 = \gamma^2 which refers to \alpha^2 + \beta^2 = \gamma^2etc. Now, I'm…