The octave tag has no wiki summary.
0
votes
0answers
21 views
Shifted inverse power method in Octave.
EDIT: Ok, I've managed it. It was very stupid bug... I must write $p=L\(P*z0)$ etc....
I'm trying to write a function which returning vector $a$ (vector of eigenvalues of matrix $A=A^T \in ...
0
votes
0answers
16 views
Plotting error in Cygwin-Octave [closed]
Given various step sizes, I want to plot the maximum value of error between an approximation and exact solutions. I already have a program that will produce any approximation I want, I'm just stuck on ...
1
vote
1answer
45 views
How to plot multinomial beta from Dirichlet Distribution
I would like to plot the multinomial beta from the Dirichlet Distribution wiki page.
$$\mathrm{B}(\alpha) = \frac{\prod_{i=1}^K \Gamma(\alpha_i)}{\Gamma\bigl(\sum_{i=1}^K ...
0
votes
0answers
47 views
Plotting function in Fourier series
I try to plot function, programm ask me for coefficients, range and number of units from Fourier series, but in the end of calculation I recieve set of numbers in double [] (ex. [[1,2,1]]) and plot() ...
4
votes
1answer
80 views
Computing $e^x$ in Octave using only +,-,*,/,^.
I have to write a function in Octave which is computing e^x. I wrote this:
...
1
vote
2answers
60 views
Why are the inverse results not equal?
I mat a problem when solving inverse of a matrix.
Firstly, I use python numpy library to make it, by coding below:
...
0
votes
0answers
52 views
Simulating the balls and bins problem in Mathematica (or similar)?
The 'balls and bins' problem
Distribute $n$ balls into $d$ bins in a way which minimises the difference between the highest and lowest loaded bins.
Reasoning for performing simulation
I have some ...
-1
votes
1answer
64 views
How to reduce precision in Octave? [closed]
I want to round the actual value of a variable to a certain precision point.
Example:
.3333333333333
to
.3333300000000
(rounding to .00001)
Is this possible?
1
vote
2answers
161 views
Solve $x^2(1-x) = 1$
I have a problem $x^2(1-x) = 1$
This can be simplified ( I think ) to $-x^3 + x^2 - 1 = 0$
Google shows that there is 1 solution for this in its graph.
I am not sure how to get to that solution ...
1
vote
2answers
194 views
Using Octave to solve systems of two non-linear ODEs
How to solve following system of ordinary differential equations using Octave?
$$\frac{dx}{dt} = - [x(t)]^2 - x(t)y(t)$$
$$\frac{dy}{dt} = - [y(t)]^2 - x(t)y(t)$$
Update: initial conditions: ...
0
votes
1answer
62 views
How to get PI based results in Octave?
In Octave
octave.exe:4> asin(1/2)
ans = 0.52360
is it possible to get the result in form of:
ans = pi/6
It seems not ...
0
votes
1answer
234 views
Plotting an integral of a function in Octave
I try to integrate a function and plot it in Octave.
Integration itself works, i.e. I can evaluate the function g like g(1.5) ...
0
votes
1answer
123 views
Using libsvm on Octave (Windows) [closed]
I want to use libsvm on Octave (on a Windows platform). If I understand well from the readme file, and from a dozens of posts of the internet, I don't have to make or compile anything, only copy the ...
2
votes
2answers
330 views
Reconstructing space curves from its curvature and torsion
I have to write a program which gets two functions (curvature and torsion) and 3 vectors of the Frenet-Serret "frame" at the starting point - and I have to reconstruct the space curve from this given ...
1
vote
0answers
84 views
In Octave, how do I specify that the solution to a matrix equation should be over integers? [closed]
In Octave, how do I specify that the solution to a matrix equation should be over integers?
I.e., Given matrix $A$, vectors $x$ and $b$; $Ax=b$. Find vector $x$($=\frac{b}{A}$) such that all its ...
1
vote
1answer
510 views
Making sense out of plotting 3D graphs in octave/matplotlib
Recently I have a few times I wanted to plot 3D graphs in some applications (tried matplotlib and octave), noticing similar syntax, but I don't understand what it does so its hard to modify it ...
1
vote
1answer
3k views
Is there a symbolic math package for octave?
I am using Octave (3.6) on Ubuntu 10.0.4 LTS. I want to do some research involving symbolic math. I was thinking of downloading sage (I just found about it today) - but thought I'd better ask in here ...
0
votes
2answers
117 views
Solving $X^{T}Xw = X^{T}y$ for $w$ in Octave / MATLAB
I have a matrix $X$ and a vector $y$, how do I solve the following equation for $w$:
$$ X^{T}Xw = X^{T}y $$
in Octave and/or MATLAB?
-3
votes
1answer
306 views
Increasing precision of Octave
I notice the values I get from octave are rounded to 5 decimal places. How can I increase that to 6 or 8 for example?
