Questions tagged [asymptote]

A powerful descriptive vector graphics language for mathematical/technical drawing, with LaTeX typesetting of labels.

A powerful descriptive vector graphics language for mathematical/technical drawing, with LaTeX typesetting of labels. See more

24 questions
4
votes
0 answers

Asymptote in python

I have recently tried using Asymptote in python. Following the directions from here:http://asymptote.sourceforge.net/doc/Interactive-mode.html, at the very bottom, it says to place the asymptote.py file on the python path. I have done this, but when…
user111
  • 143
  • 1
  • 4
2
votes
0 answers

How to write a function to generate all non isomorphic ways of arranging 9 x's on a 9 square board

How do I systematically generate the 102 nonisomorphic arrangements of x's onto a 9 square board using asymptote? These such arrangements are shown on the last page here https://arxiv.org/pdf/1301.1672v1.pdf. Here is the code I have thus far.…
2
votes
1 answer

gnuplot - "How to draw an asymptote" / "Get axis value range", get x or y axis minimum and maximum values

Is it possible to "get" the x/y (or other) axis plot range values? The reason I am trying to do this is that I want to plot a vertical line on my graph at the position of an asymptotic point... Perhaps there is an alternative or better way of doing…
FreelanceConsultant
  • 13,167
  • 27
  • 115
  • 225
1
vote
1 answer

Asymptote compiled on Git Bash gives Cygwin Error

I recently installed Asymptote 2.78 and GhostScript 9.55 (as the MikTeX installation on Windows screws them both). I also deleted the old MikTeX packages. I wanted to compile a LaTeX file with asymptote code in it. When I compile it, MikTeX again…
MATHS MOD
  • 111
  • 3
1
vote
1 answer

Fit a line (asymptotic?) forced through 0

Data x = 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5,…
vermicellion
  • 338
  • 2
  • 14
1
vote
2 answers

Math equation to find number of iterations in asymptotic loop?

I have a loop that decreases in growth as the iterations go up. I need to calculate the number of iterations it'll go through (I explain why I need this at the bottom of this question). The first 6 steps are 0.50, 1.50, 1.83, 2.11, 2.34, 2.55,…
M -
  • 26,908
  • 11
  • 49
  • 81
1
vote
1 answer

Why does f(n) and g(n) needs to be non-negative function while defining Θ

While reading about Θ definition in CLRS. I found The definition of Θ(g(n)) requires that every member f(n) ∈ Θ(g(n)) be asymptotically nonnegative, that is, that f(n) be nonnegative whenever n is sufficiently large. Consequently, the function…
Shreya
  • 35
  • 5
1
vote
1 answer

question regarding asymptotic runtime behavior

We know that log(n) = O(sqrt n ) I am wondering if is it valid to say that log(n) is theta( sqrt n ) . numerically , i proved that it is right ; yet i am not too sure about it . Would like some help
laur smith
  • 13
  • 2
1
vote
1 answer

How to fit a curve and determine the asymptote given measured data

I have measured photosynthetic rates at increasing light intensities to produce a PI curve for individual samples. I want to determine the asymptote of each curve by fitting a model to the measured responses for each sample. Below is a subset of the…
user12150823
1
vote
1 answer

how to draw an asymptote with a dashed line?

I would like the asymptote on the tg(x) function be draw with a dashed line, but I don't know how to change it in this code: import matplotlib.ticker as tck import matplotlib.pyplot as plt import numpy as…
wvnika x
  • 125
  • 4
0
votes
0 answers

Asymptote code doesn't generate triangle in a pictures

from google.colab import drive drive.mount('/content/drive') import subprocess # Install Asymptote subprocess.run(['apt-get', '-y', 'install', 'asymptote']) import os # Generating asymptote code for a right triangle with leg lengths 1 to x and 1…
0
votes
2 answers

How to create a regression function that predicts X values based on Asymptotic Regression using SciPy-optimize?

I have a dataset consisting of two columns X and Y. X Y 0 0 1 2207 2 2407 5 2570 7 2621 10 2723 20 2847 30 2909 40 2939 50 2963 This is a dataset: The values in the second column Y are certain figures estimated from…
0
votes
2 answers

How do I exclude certain values when drawing a graph?

i just started learning python matplotlib. i want draw y = 1/x linespace in python matplotlib.pyplot. but as you see the picture, asymptote show up in graph. i want to remove the asymptote. how to make this? thank you for reading my…
0
votes
1 answer

If f(n) = Θ(g(n)) does that f(n) is asymptotically equal to g(n)?

I'm fairly certain that if f(n) = Θ(g(n)) is true, if f(n) is asymptotically equal to g(n). However, I'm concerned I might be overlooking something. Am I correct in thinking that f(n) = Θ(g(n)) then f(n) is asymptotically equal to g(n)? or am I…
0
votes
1 answer

Asymptote can not create label

I am making my first steps with the vector program asymptote (https://asymptote.sourceforge.io). During my first tutorials I already encounter an error: I can't put any labels. The following code works fine: draw((0,0) -- (2,2)); however, if I add…
Nobody-86
  • 151
  • 5
1
2